homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

can i use mod rewrite for this?
mask www.widges.com/affiliate to www.affiliate.com/id=affid

5+ Year Member

Msg#: 5683 posted 12:10 am on Mar 2, 2006 (gmt 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



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

Msg#: 5683 posted 1:43 am on Mar 2, 2006 (gmt 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.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved