Currently I’m only using two type of redirection. The first one is through WP plugin called GoCodes. I did discuss about this method is this GoCodes redirect post. My second method is through php redirect.
The method is very simple. However you need to have access to your hosting as the php files need to be placed somewhere in your hosting. Here is how.
In a text editor, type the following codes. Make sure you replace the url with the correct url.
<?php
header( ‘Location: http://www.myaffiliate.com/index.html’ ) ;
?>
now just save the file as index.php or any file name with php extension.
There are two possible approaches. One is to create a directory and use index.php. So when our visitor visits the directory he will be directed to the correct url. We just need to direct our visitor to the directory. There is no need to include the index.php. index.php is the default file that our browser will look for.
http://www.mysite.com/myurl
Alternatively we can name the php codes with different file name. So what we need to do is to point our link to the php file. Just like in the following example
http://www.mysite.com/myurl.php
Our valued customers will not see any of the original urls. The redirection will be fast and quick.
Hope you like the short tutorial.



