|
<?php
header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?> |
|
|
|
|
|
HOW TO CREATE A PHP REDIRECT TO CLOAK AFFILIATE LINKS
Here's How To Make The Code Work:
|
|||||||||||||
|
<?php
header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?> |
Now you have a couple of options.
1. Name the page anything you want and put it anywhere on your site. This is especially useful if you want to change an existing page to send it to another, different page.
Simply put this code on the page and change the location URL to where you want to redirect.
2. Use a folder only.
If you want to just use a URL like
http://www.yoursite.com/gotohere without the file name (using
JUST the folder name), put the redirect code on a page by itself, put
that page in the desired folder, and name the page index.php.
3. OK, there's a third option. Sorta.
This is the example in the video and is similar to number 2. This time,
instead of placing the redirect-coded file in a subfolder of our site,
we create a sub domain. Then, simply place the index.php in that folder.
Like this...
Your site name is
www.mysite.com
Create a subdomain called redirect (or whatever you want to call it)
Now you have redirect.mysite.com
Place your index.php in this folder on your site.
It's really easy. After you do it a time or two you will be an old pro.
PRIVACY
STATEMENT
TERMS
OF USE
SITE
MAP
Drop me a line! russell at internetmarketingtoolz.com
|
|||||||
|
|
|
||||||
INTERNET
MARKETING
BLOG