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
https://www.facebook.com/MaxiBoost.Male.Enhancement.AU.NZ
MaxiBoost Male Enhancement :- MaxiBoost Male Enhancement It's essential to observe that w...Himaki026 — 09:31 AM
Makers CBD Gummies (100% Natural) Instant Relief Pain!
Makers CBD Gummies Reviews are a famous and helpful method for integrating the advantages...clemetjones — 07:47 AM
https://sites.google.com/view/menxi-keto-gummies/home
DESCRIPTION ==>  Menxi Keto Gummies This specific state requires a reasonable developm...StepheGingri — 07:42 AM
https://www.facebook.com/TheMakersCBDGummies/
OFFICIAL WEBSITE : Makers CBD Gummies The maximum useful gain of using th...MakersUSACBD — 07:21 AM
https://www.youtube.com/watch?v=l1MHBzvS0uU
INDEX : pauxnila — 07:14 AM

[-]
Follow us on Facebook