htaccess & mod rewrite for redirection script

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

htaccess & mod rewrite for redirection script

Post 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.
Post Reply