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
Fitspresso Reviews: (Must Read) Does It Really Work For Fast Weight Lo...
Fitspresso Reviews:>> DISCRIPTION =>> FitSpresso assists in your weight the ...JonesJuni — 07:27 AM
Glucoslim Deutschland (2024) 100% Safe, Does It Really Work Or Not?
➥✅ Official Website: Glucoslim Deutschland ➥✅ Product Name: Glucoslim Deutschland ➥✅ Be...FraniBeckley — 07:12 AM
https://www.facebook.com/FitSpressoWeightLoss/
NEWS: Fitspresso FitSpresso is a 100% herbal method that is created the usage ...FitspressoKetoUSA — 06:21 AM
Is the FitSpresso weight reduction supplement (legit or hype) protecte...
What is Fitspresso and What Does It Do? FitSpresso is a truly conveyed achievement sup...SusanRosasa — 05:39 AM
Cured Serenity Gummies: reviews, ingredients, and price!
Cured Serenity Gummies: In today's fast-paced world, finding moments of peace and tranq...beqapawa — 05:27 AM

[-]
Follow us on Facebook