Aug 12, 2011
tom

rewrite rule for .htaccess not working for php file

Question

After few tries i found out that

RewriteEngine OnRewriteRule .* index.php

was not working but

RewriteEngine OnRewriteRule .* index.html 

was working, what could be the possible reason? and how can i fix it?

Answer

Try(loop free):

RewriteEngine On
RewriteRule ^.*$ index.php [L]

Related posts:

  1. apache mod-rewrite to nginx rewrite
  2. file system not taking precedence over htaccess RewriteRule?
  3. Apache : Rewrite rule to change a file path
  4. .htaccess Rewrite Problem
  5. apache rewrite with wordpress

Leave a comment