301 Redirects for Proxies

Sat, Mar 7, 2009

SEO

301 Redirects For SEO Purpose for Proxies

301 redirects forwarding the http:// to the http://www is a good idea with any site, but they can be especially important with proxies. This will forward the non-www (http://proxystash.org) version of your site to the www version (http://proxystash.org).

Whether you are building your proxy with long-term goals or with the plan of selling in a few months, this redirection will help you do several things:

* Remove the issue of duplicate pages, as both pages will be exactly the same
* Spread the power of all that ‘link love’ to one place
* Pass PR more easily

So, how do you do it?

All you need to do is construct a simple .htaccess file with this code in your webhosting filemanager, or add this code to your existing .htaccess:

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Remember to change domain.com with your actual domain like this

rewritecond %{http_host} ^proxystash.org [nc]
rewriterule ^(.*)$ http://proxystash.org/$1 [r=301,nc]

Save the file as .htaccess and upload the file to your site’s root. That’s it, you’re done!

2 Comments For This Post

  1. Proxy Forum Says:

    I do this on all of my sites, not just my proxies. It’s also good to 301 redirect error pages to the home page, so that bots don’t get lost.

  2. Ilyas Says:

    Exactly, 301 redirects are very good.

Leave a Reply