Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm working on a wordpress blog. The .htaccess file for it includes this block:

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

I understand that the "! -f" and "! -d" are supposed to prevent redirects of files and directories that actually exist, but I created a folder called "www/referrals" and when I try to visit www.mysite.com/referrals, I still get re-directed.

I tried a few other negation techniques, but they did not work.

RewriteRule ^/referrals$ - [L]
RewriteCond %{REQUEST_URI} !^/referrals

I think I also tried them both without the slash, but I'll try again if someone thinks that's the solution.

How can I force the server to serve this directory without redirecting?

share|improve this question
    
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. I'll consider deleting the question if no-one else sees any value in it. –  TecBrat Jun 11 at 18:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.