Hi Guys,

I was wondering if anyone could help me out.

I am planning to offer software in my site that has affiliate tracking and in order to track downloads and campaings it needs the ~wavy sign to be configured to the httpdconf.

In order to track effectively the affiliate the link should be like the below one:

http://www.mysite.com/~2323232

Unfortunately I have prepaid 12 months in advance for my host and they told me they cant configure the httpdconf to use the ~wavy sign because it is currently used by another program in the server.

So If I want to use the above link with the ~wavy sign for example it will appear like a broken link to visitors due to the current server configuration.

I was wondering if it will be possible to bypass the problem with a php code or php script that will be able to do the redirect. What I have in mind is if the script can redirect like in way like the 2 links below and the links stay in the browsers addressbar while the visitor browses my site, then the tracking of the software downloads should work.

http://www.mysite.com/thescript.php/~2323232 or

http://www.mysite.com/thescript.php~2323232

If anyone can help me out it will be highly appreciated.

Thanks,

John

    Probably not, because the web server gets to the URL first and then passes it on to PHP. If you do want to change the web server's behaviour then you'll have to change the behaviour of the web server.

      Hi

      I think I didnt make clear what I am looking for.

      I am looking for a php script that will be able to store similar links like the one below on the address bar so affiliate tracking can work

      http://www.mysite.com/thescript.php/~2323232

      The actuall redirection can be on the

      http://www.mysite.com/index.html

      The webserver if the wavy sign is used after a file for example after thescript.php/~2323232 doesnt see it as a directory and it wont appear as a broken link.

      What i have in mind if for example is that several webmaster to track ppc campaigns use refferer codes likes the one below

      http://www.mysite.com/phpscript.php?referrer=adwordsgoogle=campaign

      I am looking for something similar that will let me use instead of phpscript.php?referrer=adwordsgoogle=campaign my /~2342343

      Or maybe creating an index.php page for my site there and implement my current html there or using a php site with a invisible frame (I have no php knowledege so everything that I am saying maybe plain stupid )

        Why do you need the ~ anyway? Just use a link like myfile.php?id=2323232 and add the ~ if necessary when you process the number.

        The tilda is normally used to direct the server to grab pages from a personal directory. Many companies block such pages b/c many claim they usually contain no useful content (BTW I disagree with that claim). You should avoid having it in your URL's unless your pages are in a personal directory.

          Write a Reply...