mod rewrite - Setting a default Apache RewriteRule entry -
I want to set a 'default' rewrite rule to catch anything that does not match the previous rewrite entries. I have tried to do this:
Rewrite rule ^ (. *) /? $ Index.php? Url = $ 1 [L]
But the output is back:
url = index.php
Ideally, I want all GET values to be added to 'url' so that they have any suggestions from anybody on my web logs how to solve it?
Whenever you can, if you want to exclude "index.php": < / P>
rewriterule. Index.php? Url = $ 0 [L]
rewrite ^ (?! Index .php). * Index.php? Url = $ 0 [L]
Comments
Post a Comment