Results 1 to 2 of 2

Thread: rewrite negative conditions seem to be ignored.

  1. #1
    Join Date
    Oct 2007

    rewrite negative conditions seem to be ignored.

    For, http://www.samplesite.com/, I have an .htaccess file with this in it: (It's a wordpress site)

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    I understand that the two %{REQUEST_FILENAME} conditions should cause that redirect to ONLY happen if the requested directory or file DO NOT exist.

    The problem I am having is that I created a folder at .../public_html/referrals and a request for http://www.samplesite.com/referrals/ is still getting redirected.

    What I am doing wrong? Should I look at something else on my server as the possible problem?

  2. #2
    Join Date
    Oct 2007
    It turns out it was a browser cache issue. Even though I use "ctrl+F5" or "ctrl+shift+r" to refresh, it was still caching. I opened in a new browser (chrome) and it worked fine. I'll dump my cache. Maybe a moderator will consider deleting the question if no-one else sees any value in it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center