Forum Moderators: open

Message Too Old, No Replies

Apache rewriterule to a new browser Window

Want to track requests and launch new browser

         

ameyerson

1:52 am on Nov 20, 2004 (gmt 0)

10+ Year Member



Hey Everyone,

I am entering the world of being an affilate and need to do the following:

1. Track requests to an internal URI
2. Map the internal URI to a partners page
3. Launch a new browser (like target="blank") for the partner page

I was thinking that using the Apache RewriteEngine would work but how to I force the new browser in the .htacess file?

Thanks.

encyclo

1:57 am on Nov 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



but how to I force the new browser in the .htacess file?

You can't. The .htaccess functions server-side to redirect/rewrite URLs, whereas opening windows is strictly client-side and controlled by the browser. In order to open a new browser window, you have two options: use the

target="_blank"
attribute on the link, or use Javascript to open the new window.

ameyerson

4:43 pm on Nov 20, 2004 (gmt 0)

10+ Year Member



thanks encyclo - now it's obvious.

So what technique do you recommend to track requests that I send to partners and open them in a new browser?

I was tying to keep it simple - read: use only apache modules - but it seems like I will have to use PHP or some other server side technology.

I shy away from javascript because users can disable it - and i need the solution to be as bullet proof as possible.

-Adam