Forum Moderators: phranque
I though I knew how to do this but I cannot get it right. I am basicall trying to redirect any url on the site to one script on my server.
Here's what I have, but I keep getting a 500 error:
RewriteEngine on
RewriteCond %{REQUEST_URI}!^curl_forward\.php$
RewriteCond %{QUERY_STRING} (.*)
RewriteRule (.*) /curl_forward.php?url=$1%1
Seems pretty basic, but no go and I have tried many variations. Can someone lend a hand here :)
Thanks!
RewriteCond %{REQUEST_URI} [b]!^/cu[/b]rl_forward\.php$
RewriteRule (.*) /curl_forward.php?url=$1 [b][QSA,L][/b]
RewriteCond [b]$1[/b] [b]!^cu[/b]rl_forward\.php$
RewriteRule (.*) /curl_forward.php?url=$1 [b][QSA,L][/b]
Also, this is an internal rewrite, not an external redirect, so let's be sure that the terminology agrees with what you want to accomplish.
Jim