Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

can i use mod rewrite for this?

mask www.widges.com/affiliate to www.affiliate.com/id=affid

     
12:10 am on Mar 2, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:May 12, 2005
posts:45
votes: 0


i would like to mask the affiliate url to anyone on my website would go to url www.widges.com/affiliate and the user would not know that the page is infact www.affiliateurl.com/id=affid.

i read lots of posts, but i realised i am never going to understand regex.

i tried
RewriteRule ^/affiliate/$ [affiliateurl.com...]
it works but the url on the browser changes too

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.widges\.com/affiliate/
RewriteRule .* [affiliateurl.com...] [P,L]
This doesnt work

can anyone help

1:43 am on Mar 2, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


You'll need to set up your server to handle proxy requests then, and pass your users' requests to the external site, and then pass the external site's responses back to your users.

Be sure this is allowed, because *all* requests to that site passed through your server will appear to come from your server, so it's easy to detect.

Jim