Join Date: Sep 2006
mod_rewrite page to remote server
I want to redirect a page to a remote server. I am having a lot of problems with this, and really appreciate any help.
I have a site where I want to advertise affiliates, as well as providing great information.
I want to point the links to:
and have them redirect to the affiliate with the affiliate id.
In my .htaccess, I simply added:
RewriteRule ^affiliate1.html$ http://affiliate1\.com/ [R,L]
and it does not work. I have looked at various websites but find it hard to understand.
Can anyone recommend the best way of achieving my goal?
Join Date: Jun 2004
Location: Dallas, Texas but forever a Floridian!
The redirection part is what has me confused.
can you give a better example of the site that will be the final destination.
Join Date: Nov 2006
RewriteEngine On RewriteBase / RewriteRule affiliate([0-9]+)\.html$ http://affiliate$1.com [R=301,L]
affiliate1.html to http://affiliate1.com
affiliate2.html to http://affiliate2.com
affiliate788.html to http://affiliate788.com
Last edited by Chris Boggs : 06-03-2007 at 02:16 PM. Reason: remove keyword stuffed anchor text link
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|