18, July 2008

SEO in redirects - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

Author Topic: SEO in redirects  (Read 3946 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1517
6803 credits
Members referred : 8


Gimme all your cookies!!!


« on: Dec 12, 2005, 01: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 : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7967
40759 credits
Members referred : 3



« Reply #1 on: Dec 12, 2005, 01: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 Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1517
6803 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #2 on: Dec 12, 2005, 02: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 Visit through proxy


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7967
40759 credits
Members referred : 3



« Reply #3 on: Dec 12, 2005, 03: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 Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1517
6803 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #4 on: Dec 14, 2005, 08: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 : Site of the Month - August 2007
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #5 on: Dec 14, 2005, 10: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.

Visit through proxy Visit through proxy Visit through proxy

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


Gimme all your cookies!!!


« Reply #6 on: Dec 14, 2005, 10: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 : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7967
40759 credits
Members referred : 3



« Reply #7 on: Dec 14, 2005, 10: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 Visit through proxy

Last blog : MIA - Where Nick and Tim
I crack Photoshop!
*
Posts: 3
18 credits
Members referred : 0


« Reply #8 on: Jun 10, 2006, 03: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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jul 18, 2008, 11:13:08 PM





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!


Forum Statistics
Total Posts: 35.662
Total Topics: 7.373
Total Members: 3.693
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: talelmouaada

25 Guests, 3 Users online :

15 users online today:



Readers

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