Forum Moderators: phranque

Message Too Old, No Replies

Mod-Rewriting Help

Mod- Rewriting Help

         

megamarketing

1:23 pm on May 12, 2006 (gmt 0)

10+ Year Member



Hi Every One i am new to mod-rewriting and been a long time searching and reading for solution. So please help me out.

I want to hide a affiliate link and the url that displays in the address bar.
so that it looks like user is in my website rather going to the merchant site.

For example what i want is a user comes to mysite.com and rollover to a link that is lets say (Click here)it shows the affiliate link but i want it to show mysite.com/some and when he click it he will go directly to the site that is my aff site but i want the address bar to show mysite.com rather then aff site.

I hope i have explained it right.

jdMorgan

3:07 pm on May 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Mod_rewrite is of no help here. By definition, you cannot do an internal rewrite to an external server.

See Apache mod_proxy [httpd.apache.org] for a possible solution.

However, be aware that the server you forward the request to will always log your server as the requestor; It will not see the original requestor's IP address.

Be careful to check the aff Terms and Conditions: What you're trying to do may not be --indeed probably is not-- allowed. And since your server is always the requestor, this is trivial to enforce.

Additionally, such things as cookies and authentication may break if you proxy requests.

Jim

megamarketing

6:47 am on May 13, 2006 (gmt 0)

10+ Year Member



Thanks mate i read and i think i should go with simple solution like frames thing if you want i can right what i did with my problem. But really thanks for your reply it really helped me to decide what to do.

Cheers but defenatly will be asking you more about mod-rewriting again cos i have to shorten my url's. if there is any post about that please do tell me.