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
Effortless Guide: How to Connect Amazon Prime to TV
Wondering how to connect Amazon Prime to TV? Don't worry, I've got you covered! I recentl...tech2review — 10:30 AM
Ignou MFNP 12 solved project
Get Ignou MFNP 12 solved project & report at an affordable price. Book your Ignou MFN...Smith29 — 10:24 AM
"Makers CBD Gummies: Your Daily Bite of Bliss"
Makers CBD Gummies - Brought into the world from an enthusiasm for all encompassing wellb...Debbieorresi — 10:04 AM
Growth Matrix
Growth Matrix Growth Matrix is a web-based framework that tells you the best way to help...Rantide — 09:28 AM
https://slim-x-keto-gummies.webflow.io/
Slim X Keto Gummies protection: maintaining up with weight loss may be basically as ...lorenzoakams — 09:23 AM

[-]
Follow us on Facebook