What's wrong with this Apache rewrite rule? -
What's wrong with this Apache rewrite rule? -
here's .htaccess
:
rewriteengine on rewriterule ^([^/]+)$ /index.php?id=$1 [l]
and requests maintain causing 500.
you entering rewrite loop. alter this:
rewriteengine on rewritecond %{request_uri} !^/index\.php [nc] rewriterule ^([^/]+)$ /index.php?id=$1 [qsa,l]
or (should have same effect behind):
rewriteengine on rewritecond %{request_filename} !-f rewriterule ^([^/]+)$ /index.php?id=$1 [qsa,l]
apache mod-rewrite
Comments
Post a Comment