homepage Welcome to WebmasterWorld Guest from 54.235.16.159
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
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
dopecoder




msg:1523382
 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

 

jdMorgan




msg:1523383
 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.

Jim

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