I want to set a 'default' rewrite rule to catch anything that didn't match the previous rewrite entries. I've tried this:
RewriteRule ^(.*)/?$ index.php?url=$1 [L]
But the output returned is:
url = index.php
Ideally what I want is to attach all the GET values to 'url' so they will be saved to my web log. Anyone have any suggestions how to solve this?
You need to exclude the destination from your rule:
Omit needless parentheses in regular expressions whenever you can:
If you want to exclude "index.php":
Try to remove slash: