1
I use to following rewrite rule to pass the whole url to an php script:
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*?)$ index.php?rewriteUrl=$1 [QSA,L]
On some servers, I have to use
RewriteRule ^(.*)$ index.php?rewriteUrl=$1 [QSA,L]
instead (the ?
is missing).
Is there a way to make the server handle this automatically? In form of a fallback/try-catch or something like this?
I can't say I understand your question or the point of having the
– quentinxs – 2012-11-01T16:53:27.017?
in the expression. For information on regular expression usage in mod_rewrite, please see the Apache documentation.