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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -