There may be certain situations when you need to hide a URL on your web site. This is useful, for example, in changing the display URL for affiliate links. While there are several good techniques for accomplishing this, I prefer using the refresh metatag to redirect users entering that page to another location.

This is how it works. When you open a URL, such as, it will automatically look for a page called index.htm, index.html, or index.php (if you have PHP installed on your web server). An ASP.NET server will try to open a page called index.asp, index.aspx, or Default.aspx. These default pages can be defined by the web server settings for that URL.
The defaults also work for subfolders. For example, if you open and there is a file called index.php in that folder, it would be opened just as if you would had entered
You can redirect a user that opens a web page with the refresh metatag as the following example shows.
====[ index.php ]===============
<meta http-equiv=”refresh” content=”0; url=″>
So now when someone moves the mouse over the linked ad, they will see and when they click on it, they will be directed to
This technique for hiding affiliate links is very easy to do because all you have to do is define the url in the refresh tag. However, in order to hide links this way you need to be able to log into your web site by FTP or SSH and create these subfolders. I’m not sure if you can do this sort of thing in Blogger or similar sites.

Translate ยป
%d bloggers like this: