29, May 2012

SEO in redirects - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web site promotion  >  Search Engine Optimization
Topic: SEO in redirects
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: SEO in redirects  (Read 4670 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« on: Dec 12, 2005, 12:24:39 pm »

When redirecting any old pages of your site to moved / new pages, the best redirect is to use a 301 redirect. This is the most efficient and SE friendly method and it should preserve your search engine rankings for that specific page.

It is not that hard to implement:

~ PHP ~
Code:
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

~ .htaccess ~
Code:
Redirect permanent / http://www.other-address.com



Last blog : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Dec 12, 2005, 12:29:55 pm »

Quote
Header( "HTTP/1.1 301 Moved Permanently" );

Is this neccesery? I thought the Location header would do the work alone.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #2 on: Dec 12, 2005, 01:36:38 pm »

I think that it tells the agent that it should use the new URI in future. More here...

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2


Last blog : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Dec 12, 2005, 02:04:14 pm »

Hmm. Thanks.

I recently used this, so I suppose it will help if I'll put this header too.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #4 on: Dec 14, 2005, 07:52:11 pm »

Hey I need a hand here... I have this in my .htaccess file...

Code:
redirect permanent http://www.wineography.com/index.htm http://www.wineography.com

... and it is not redirecting to the home page when I go to /index.htm. Any ideas?


Last blog : Canonical URL Links / Tags
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #5 on: Dec 14, 2005, 09:10:28 pm »

have you tried using simple javascript to redirect your pages? 301 only works i believe if you have switched into a new directory, not top-level files. although I am not 100% sure.


Last blog : phpHaze 1.59.1 in Development
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #6 on: Dec 14, 2005, 09:31:05 pm »

Hmmm, I think that the php header redirect would be better than a javascript one (SEOwise), but I think that I need to get this .htaccess one right.


Last blog : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #7 on: Dec 14, 2005, 09:42:07 pm »

header redirects are working for any occasion, even if the browser is not javascript enabled.

And it is the best way to tell a search engine crawler that your pages has moved

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I crack Photoshop!
*
Posts: 3
18 credits
Members referred : 0


« Reply #8 on: Jun 10, 2006, 02:23:06 pm »

i found what i was looking for! thanks for the info.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=972
Tags : php javascript seo browsers search engines Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web site promotion  >  Search Engine Optimization
Topic: SEO in redirects
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 29, 2012, 01:50:02 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.