Joined: 25 Aug 06
06 Sep 06 1:45 pm
PHP is a programming language for the web much like ASP or Perl. This allows you greater control of your page and the ability to create advanced features in your website.
A Root directory could actually be many different locations, however, the point sean06 was making is you will need to place this newly created PHP file in a new folder on your website that you created.
For example, if your website was affilorama.com and you wanted to cloak an affiliate URL you were going to send out via email you might like to create a URL like instead.
It's short, sweet and accomplishes all of our goals. Now to make this URL actually work you will need to connect to your web site via FTP. Once, logged into your main or Root web site directory create a new folder (or directory, for you non-windows users) named "af" without the quotes of course.
Now, that we have a new folder it's time to make our Redirect script. I will provide you with two very basic scripts one in PHP and one in HTML just in case your server does not support PHP.
PHP Redirect Script:
HTML Redirect Script:
All you need to do is modify https://www.affilorama.com/af
with your own URL to your website and upload one of these files to your new folder as index.php or index.html depending on which script you selected.
That's all there really is to it. If you need any further help please let me know.
Last edited by anonymous on 06 Jul 09 9:22 pm, edited 2 times in total.
Reason: Encoding url