Redirecting php www.host1.com/files to www.host2.com/

New to mod_rewrite? This is a good place to start.

Redirecting php www.host1.com/files to www.host2.com/

Postby fmoise99 » Mon Sep 16, 2002 2:26 pm

I'm trying to figure out how to redirect my php scripts from one host directory "www.host1.com/files" to another host "www.host2.com/".

I tried a .htaccess redirect:

Redirect permanent /files http://www.host2.com/

It partially worked, but it does parse my file strings.

Example:

http://www.host1.com/files/index.php?action=index&var=1 Redirects to http://www.host2.com/index.php instead of http://www.host2.com/index.php?action=index&var=1

Any ideas on how to do this?
fmoise99
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 16 guests

cron