Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Search Engines > Google Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2004, 05:48 AM
WebProWorld Member
 

Join Date: May 2004
Location: UK
Posts: 63
mossop RepRank 0
Default 301 redirect!

I have redirected my old site to my new site using the 301 redirect.

Will the search engine eventually pick up the new domain so when the searcher finds my site listed it will have the new domain as the first intial link instead of going through the old one?

Will google punish me for using the 301 redirect thinking that I am trying to create links to my new site?
Reply With Quote
  #2 (permalink)  
Old 08-02-2004, 06:18 AM
Mel Mel is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Posts: 1,921
Mel RepRank 0
Default

Yes with the exception of Yahoo, who seem to have some problems handling 301s at the moment.
__________________
Mel Nelson
Expert SEO
Reply With Quote
  #3 (permalink)  
Old 08-02-2004, 06:42 AM
WebProWorld Member
 

Join Date: May 2004
Location: UK
Posts: 63
mossop RepRank 0
Default

Yes to my first question or second?
Reply With Quote
  #4 (permalink)  
Old 08-02-2004, 06:58 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

Quote:
Originally Posted by mossop
Yes to my first question or second?
Yes to the first question and no to the second
The 301 tells the bots that the page has moved permanently
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #5 (permalink)  
Old 08-03-2004, 08:20 AM
WebProWorld Member
 

Join Date: May 2004
Location: United Kingdom
Posts: 30
baritoneuk RepRank 0
Default How do you put a 301 on a site?

S'cuse my ignorance- but how do you put a 301 header on the site?
Reply With Quote
  #6 (permalink)  
Old 08-03-2004, 12:00 PM
WebProWorld Veteran
 

Join Date: May 2004
Location: Not here..
Posts: 627
pedstersplanet RepRank 0
Default

Put this in a .htaccess file:
Quote:
redirect 301[list=1] <new domain>
if youre using Apache...
Just a / (forward slash) in[list=1] will work IIR.

Thats how I have my .com redirected....
__________________
Left WPW to do better things So long
Reply With Quote
  #7 (permalink)  
Old 08-04-2004, 10:44 AM
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Houston
Posts: 5,715
greeneagle RepRank 0
Default

mossop,
Was in the page header or a server side permanent 301 redirect?

Does anyone know what is preferred?

I also just saw another code snippet in another thread that claimed that it needed to be done that way in the header or it would be percieved as a 302 temporary redirect posted by T2DMan:
"You need to be very careful with how you do redirects

The correct coding for a 301 redirect is:

$url="http://domain.com";
Header("HTTP/1.1 301 Moved Permanently");
Header ( "Location: $url" );

Without the first header, the redirect becomes a 302 temporary redirect. If you use wording even slightly different, it can also become a 302 redirect."

This one is far from being resolved, can anyone shed more light?

Ken
Reply With Quote
  #8 (permalink)  
Old 08-04-2004, 05:18 PM
WebProWorld Member
 

Join Date: Jun 2004
Posts: 88
emils RepRank 0
Default

Quote:
Originally Posted by greeneagle
mossop,
Was in the page header or a server side permanent 301 redirect?

Does anyone know what is preferred?

I also just saw another code snippet in another thread that claimed that it needed to be done that way in the header or it would be percieved as a 302 temporary redirect posted by T2DMan:
"You need to be very careful with how you do redirects

The correct coding for a 301 redirect is:

$url="http://domain.com";
Header("HTTP/1.1 301 Moved Permanently");
Header ( "Location: $url" );

Without the first header, the redirect becomes a 302 temporary redirect. If you use wording even slightly different, it can also become a 302 redirect."

This one is far from being resolved, can anyone shed more light?

Ken
I have recently used this particular php code snippet to redirect thousands of pages on some of my sites, due to modifying site structure. It worked just fine. 2-3 days after the change, Google came and mass loaded the new pages and all went fine afterwards.

If you are unsure if your 301 works fine, check it with a header viewer page. Like this one: http://www.delorie.com/web/headers.html .

As a note, in my case the header shows: "HTTP/1.1 301 Undescribed" instead of "HTTP/1.1 301 Moved Permanently". However this is still a 301 and Google picked it up ok. I don't really know why it does that, used the code above Ken provided (server has IIS+PHP). But even with this issue, it worked for me.

Good luck!
Reply With Quote
  #9 (permalink)  
Old 08-04-2004, 09:20 PM
WebProWorld Member
 

Join Date: Jun 2004
Location: Seattle WA USA
Posts: 86
robinev RepRank 0
Default

As I understand it (and it's unclear as are so many things Unix-related where writers insist on being mysterious when explaining anything), to do a 301 redirect in an .htaccess file you should use either the keyword "permanent" or the keyword "301":
Code:
redirect permanent /oldpage.html http://my.site.com/newpage.html
Without the keyword, the entry would become a 302 temporary redirect.

I haven't noticed that it makes much difference to Google. It seems to handle both 301's and 302's in the same manner. The buggy Yahoo, of course, doesn't handle them at all.
Reply With Quote
  #10 (permalink)  
Old 08-31-2004, 01:37 PM
WebProWorld Member
 

Join Date: May 2004
Location: UK
Posts: 63
mossop RepRank 0
Default

Is this right then

My old website is www.old-domain.co.uk
My new website is www.new-domain.co.uk

$url="http://www.new-domain.co.uk";
header("HTTP/1.1 301 moved permanently");
header("location: $url"

I am not sure if I have done it right can anyone help?
Reply With Quote
  #11 (permalink)  
Old 08-31-2004, 03:17 PM
WebProWorld Pro
 

Join Date: May 2004
Location: So Cal, USA
Posts: 250
braknews RepRank 0
Default

In my experience, using the .htaccess, I found that it was better to have the following:The slashes at the end of the domain names ensures that if there is a link to a specific page on your old site the visitor will be redirected to a page of the same name in the new.
Reply With Quote
Reply

  WebProWorld > Search Engines > Google Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0