Affiliate Marketing Tutorial 39 | Clickbank | How to Move Your Pages With 301 Redirects
In this lesson we look at how to move your pages with 301 redirects.
When to use a 301 Redirect
Imagine you’ve got a page on your website that has attracted a whole lot of good links, and is attracting a lot of traffic, but you need to move it to a different place on your website. You probably don’t want to outright delete the page and simply recreate it somewhere else – you’ll lose all those great links and all that PageRank as well.
The solution is the 301 Redirect. This takes all traffic and links arriving at your old page and redirects them to the new page; your links are safe, your PageRank is safe and your visitors still get to where they need to be.
The .htaccess method
301 Redirects can be created in several ways; the preferred method is by using your .htaccess file (if you’re using an Apache server, which you probably will be)
First, make sure you’ve created your new page!
Then open (or create, if it doesn’t exist) the .htaccess file in the same directory as your page, and paste the following code:
Redirect 301 /my-page.php http://www.example.com/new-page.php
Save this, upload, and your redirect should be in place! Easy as that! This method is the most powerful because you can redirect entire folders/directories, or even entire websites with it, e.g.
Redirect 301 /current-directory http://www.example.com/new-directory
The PHP method
If you’re not sure how to edit your .htaccess file there is an alternative method: using a PHP file.
Move or delete your old page (e.g. rename ‘my-page.php’ to ‘my-page-old.php’), create a new page with the same name (i.e. create a new page called ‘my-page.php’) and paste in the following code:
<?php Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.example.com/new-page.php" ); ?>
When you save the page, you have to save it as a .php page. You also need to be sure that there’s no .html version of the same page in the same place, because the web server may use the .html version instead of this one.
Once you’ve got all that, upload the page, and the redirect should start working immediately!
Note that this method is only good for redirecting one page, and only works on php pages. (If you need to redirect multiple pages you must replace each page you want to redirect)
In this lesson we looked at ways to redirect your page without losing all of its links or PageRank. The two methods we looked at were:
- Using a .htaccess redirect
- Using a PHP file
Learn something new? Share it with your friends!
Affiliate Marketing For Beginners Guide- Make $121.71 Per Day With FREE Traffic, Plus FREE Software
How To Make Money Online With Facebook – Youtube | Software For Affiliate Marketing | Work From Home Jobs
How To Make Money On Facebook- OCTOSUITE | Facebook Tool Software- Best Way To Make Money From Home
How To Increase Website Traffic- Free Traffic Source Up to 16,364 Targeted Visitors Per Day
Make Money Online With Affiliate Marketing | Clickbank- Just Follow These 3 Simple Steps, I Have Make $200 In 20 Minutes Daily
The Legal Loophole That Can Kill Your Business + How To Solve It In Just 1 Click | WordPress Plugin
How To Make Money Online With Affiliate Marketing | Clickbank | $1k/day With Free Traffic Keywords
Make Money Online Affiliate Marketing- Set Your Instagram and Bring In Traffic, Leads & Sales Today
Learn How To Make Money With JVZoo | JVZoo Academy | Make Money Online With Affiliate Marketing
Complete ConvertKit Tutorial 2017 | Build Email List Fast | Best Email Marketing Services
Affiliate Marketing For Beginners | Clickbank Tutorial | Make $2,293.26 Per Day From My Laptop
Make Money Online Affiliate Marketing For Beginners |Clickbank |$2,228 Weekly By These 4 Simple Step
How To Start A Local Facebook Ad Agency | Run Facebook Ads For Local Businesses | Work From Home
Make Money Online From Home | FREE DotComSecrets Book | Underground For Growing Your Company Online
Give FREE Book DotCom Secrets | Improve Your Traffic, Conversion n Sales Online | Make Money Online
Ship Your FREE Book DotCom Secrets Now | Growing Your Business Online | Make Money Online From Home