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
Keto Calm ACV Gummies Reviews:-(BE APPROVEN)
Keto Calm ACV Gummies Reviews:- In the quest for holistic wellness, the ketogenic diet h...Khsnchte — 10:29 PM
Visit web soundbar malaysia company Malaysia
Our business in music was first established in 1962 with humble beginnings in a shop hous...noragrace2224 — 03:58 PM
pos system for salon and spa
Inspired by rapidly improving technology, Studio Manager was created to move the beauty s...noragrace2224 — 03:57 PM
ClearSK Aesthetic Clinics - ClearSK Aesthetic Clinic
ClearSK Aesthetic Clinics operates under the medical division of ClearSK Group. The Group...noragrace2224 — 03:56 PM
Google SERP Changes & Algorithm Updates - April 2024
Last time I heard finance sector was stable. I don't believe politics isn't effecti...cbtech — 02:51 PM

[-]
Follow us on Facebook