Thread Rating:
  • 0 Vote(s) - 0 Average
Share Thread:
How to 301 redirect properly?
#11
moz.com/learn/seo/redirection

You can refer this link for further detailed info about how to get 301 redirect.
Reply
#12
A 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It’s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it’s the safest option. The code “301” is interpreted as “moved permanently”.

<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: <!-- m --><a class="postlink" href="http://www.new-url.com">http://www.new-url.com</a><!-- m -->” );
?>
Reply
#13
A 301 redirect is a permanent redirect which passes between 90-99% of link equity (ranking power) to the redirected page. 301 refers to the HTTP status code for this type of redirect. In most instances, the 301 redirect is the best method for implementing redirects on a website.
301 Redirects in Apache
Problem:
Back when we launched our first website, seomoz.org, it was hosted at <!-- w --><a class="postlink" href="http://www.socengine.com/seo/">www.socengine.com/seo/</a><!-- w --> rather than on its own domain. When the original developers were moving seomoz.org to its own dedicated server, they wanted it to be accessed as its own domain rather than as a subdirectory of socengine.com. They needed visitors accessing anything in <!-- w --><a class="postlink" href="http://www.socengine.com/seo/">www.socengine.com/seo/</a><!-- w --> to be redirected to <!-- w --><a class="postlink" href="http://www.seomoz.org">www.seomoz.org</a><!-- w -->. The redirection had to accommodate several file and folder name changes and had to be done with 301 redirects in order to be search engine-friendly. They also needed to forward <!-- m --><a class="postlink" href="http://seomoz.org">http://seomoz.org</a><!-- m -->, too, for aesthetic purposes and to avoid canonicalization errors.

Solution:
The simplest approach to do this would have been to add 301 redirects to the PHP code that powered seomoz.org using PHP's header function. Utilizing the power of the apache module mod_rewrite, however, the developers realized they could match specific patterns for entire folders and redirect them to their new URLs without having to go through every PHP script.
Reply
#14
thaopham Wrote:A 301 redirect is a permanent redirect which passes between 90-99% of link equity (ranking power) to the redirected page. 301 refers to the HTTP status code for this type of redirect. In most instances, the 301 redirect is the best method for implementing redirects on a website.
301 Redirects in Apache
Problem:
Back when we launched our first website, seomoz.org, it was hosted at <!-- m --><a class="postlink" href="http://www.socengine.com/seo/">http://www.socengine.com/seo/</a><!-- m --> rather than on its own domain. When the original developers were moving seomoz.org to its own dedicated server, they wanted it to be accessed as its own domain rather than as a subdirectory of socengine.com. They needed visitors accessing anything in <!-- m --><a class="postlink" href="http://www.socengine.com/seo/">http://www.socengine.com/seo/</a><!-- m --> to be redirected to <!-- m --><a class="postlink" href="http://www.seomoz.org">http://www.seomoz.org</a><!-- m -->. The redirection had to accommodate several file and folder name changes and had to be done with 301 redirects in order to be search engine-friendly. They also needed to forward <!-- m --><a class="postlink" href="http://seomoz.org">http://seomoz.org</a><!-- m -->, too, for aesthetic purposes and to avoid canonicalization errors.

Solution:
The simplest approach to do this would have been to add 301 redirects to the PHP code that powered seomoz.org using PHP's header function. Utilizing the power of the apache module mod_rewrite, however, the developers realized they could match specific patterns for entire folders and redirect them to their new URLs without having to go through every PHP script.

Can give me a tutorial or something like that to do it properly?

That will be extremely helpful.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Ad

[-]
Top Articles
100+ Social Bookmarking Sites List
55+ Image Submission Sites List

[-]
Recent Posts
Study Get-together Assistance
The best nursing classes offer clearing understudy support best nursing writing services ...femecaj — 07:51 PM
Kelly Clarkson Weight Loss Keto Gummies Reviews (IS HYPE?)
What are Kelly Clarkson Weight Loss Keto Gummies? Kelly Clarkson's Weight Loss Keto Gumm...segsxfhr — 06:43 PM
The Role of Nurses in Disaster Response
Book Writing Helper in the workplace can help destigmatize mental illness in society at l...AhGaeza — 05:26 PM
new
new hereLarryJohnson — 03:23 PM
Sugar Defender Reviews Reviews Hoax or legit? Must Read Reviews Cost!
Sugar Defender ||   Facebook:-   Sugar Defender 24 is a characteristic way for indivi...WeberLawre — 03:09 PM

[-]
Follow us on Facebook