Page 1 of 1

htaccess & mod rewrite for redirection script

Posted: Wed Apr 29, 2009 1:38 pm
by Benjamin
I'm trying to create a redirection script, but I'm getting 404 errors.

Here is the .htaccess file:

Code: Select all

 
Options -Indexes
 
RewriteEngine on
RewriteRule ^(.*)$ index.php?RESOURCE=$1 [L,QSA]
 
Now if I go to folder/http://www.test.com it works. But when I urlencode it and go to http%3A%2F%2Ftest.com I get 404 errors.

I would like to get this working without adding parameters to the url.