# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog.php [L] </IfModule> What I did was moved index.php to blog.php But for all files .. say test.php which is a test file, it still calls blog.php Even for directories which are present, for eg: images, it redirects to blog.php .. I though the Conditions ie !-f and !-d should not redirect to blog.php for files which exist. thanks.
no. I had a wordpress blog running at the root. But now I am starting something else in addition to the blog on the root. So I changed index.php to blog.php in <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog.php [L] </IfModule> I thought !-f and !-d will take care of handling all non wordpress files and dirs. I mean if I have a file called test.html in the root dir then the url domain.com/test.html should show me that file. It does not. It shows me blog.php pls help
I think you have mistake in .htaccess code Try this one: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /blog.php [L] </IfModule>