Irish SEO,  Marketing & Webmaster Discussion

 

301 redirect question

This is a discussion on 301 redirect question within the Coding Help forums, part of the Webmaster Discussion category; I’m moving my site from irishwidget.com to widget.ie I’m using this Code: <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Webmaster Discussion > Coding Help

Register Forum Rules FAQDonate Calendar Search Today's Posts Mark Forums Read



Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-01-2007, 12:50 AM
Coder
 
Join Date: Dec 2006
Posts: 30
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
JamesA will become famous soon enough
Default 301 redirect question

I’m moving my site from irishwidget.com to widget.ie

I’m using this

Code:
<? 
Header( "HTTP/1.1 301 Moved Permanently" ); 
Header( "Location: http://www.widget.ie/test.htm" ); 
?>
If I put the code into my header and it appears on (irishwidget.com/test.htm) should it be able to locate the same page (widget.ie/test.htm) on the new domain.
It just seems to redirect to widget.ie

Will it hurt if all the pages on irishwidget.com redirect to the homepage of widget.ie? Is this the best way to move to a new domain and retain my google trafic?

Any help appreciated.
__________________


Last edited by JamesA; 25-01-2007 at 12:53 AM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 25-01-2007, 02:04 AM
blacknight's Avatar
Web Slave
Recent Blog: links for 2010-03-17
 
Join Date: Jan 2006
Location: Ireland
Posts: 7,869
Thanks: 7
Thanked 7 Times in 6 Posts
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Default

If you're on Apache:
http://www.irishwebmasterforum.com/s...d_rewrite.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 25-01-2007, 09:08 AM
RedCardinal's Avatar
Richard Hearne
 
Join Date: Feb 2006
Location: Dublin/Phuket
Posts: 985
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

Quote:
Originally Posted by JamesA View Post
I’m moving my site from irishwidget.com to widget.ie

I’m using this

Code:
<? 
Header( "HTTP/1.1 301 Moved Permanently" ); 
Header( "Location: http://www.widget.ie/test.htm" ); 
?>
If I put the code into my header and it appears on (irishwidget.com/test.htm) should it be able to locate the same page (widget.ie/test.htm) on the new domain.
It just seems to redirect to widget.ie

Will it hurt if all the pages on irishwidget.com redirect to the homepage of widget.ie? Is this the best way to move to a new domain and retain my google trafic?

Any help appreciated.
Best way is probably to redirect oldPageA -> newPageA, oldPageB -> newPageB using .htaccess in link above from Michele.

If your site is very large (hundreds or thousands of pages) then it is bext to do this in chunks so as not to confuse the spiders.
__________________
RedCardinal.ie Search Engine Optimisation & Online Marketing
I offer Web Strategy Consulting and SEO Services.
My sister's handmade canape company - Catering Company Dublin
On Twitter I'm RedCardinal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 25-01-2007, 09:12 AM
blacknight's Avatar
Web Slave
Recent Blog: links for 2010-03-17
 
Join Date: Jan 2006
Location: Ireland
Posts: 7,869
Thanks: 7
Thanked 7 Times in 6 Posts
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Default

With my method you can do one page or a million pages at once
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 25-01-2007, 09:20 AM
RedCardinal's Avatar
Richard Hearne
 
Join Date: Feb 2006
Location: Dublin/Phuket
Posts: 985
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

Quote:
Originally Posted by blacknight View Post
With my method you can do one page or a million pages at once
Sorry, didn't read it. Just assumed it was for .htaccess.

Will read now though...

Oh, BTW, you dont ever want to redirect millions of pages at once. Google have stated that the spider will choke and it's likely to harm your rankings.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 25-01-2007, 09:25 AM
blacknight's Avatar
Web Slave
Recent Blog: links for 2010-03-17
 
Join Date: Jan 2006
Location: Ireland
Posts: 7,869
Thanks: 7
Thanked 7 Times in 6 Posts
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Default

You could put it in a .htaccess, but it seems to be more graceful to have two vhosts anyway

Vhost1 - your original domain with mod_rewrite settings in either .htaccess or directly within apache

Vhost2 - your target site ie. where you want it all to end up

As for choking spiders.. I can't see why that would happen unless you were doing really complex redirects ie. mapping multiple paths to multiple destinations
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 25-01-2007, 10:01 AM
RedCardinal's Avatar
Richard Hearne
 
Join Date: Feb 2006
Location: Dublin/Phuket
Posts: 985
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

Quote:
Originally Posted by blacknight View Post
As for choking spiders.. I can't see why that would happen unless you were doing really complex redirects ie. mapping multiple paths to multiple destinations
'choke' might have been the wrong phrase. The spider has no problems with the content, but how the index is created and redirects are processed may be affected by redirecting large quantities of pages in one go.

In essence the spider will eat it up but the index will spit it out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 27-01-2007, 07:53 PM
Coder
 
Join Date: Dec 2006
Posts: 30
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
JamesA will become famous soon enough
Default

Thanks for all the help guys, I'll probably be back for more when I get around to putting this redirect into practice. At least I know where to start now.

ps: I asked the same question over at webmasterworld without much success. Thanks for putting this place together and being so helpful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 04-02-2007, 10:18 PM
Coder
 
Join Date: Dec 2006
Posts: 30
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
JamesA will become famous soon enough
Default

Thanks guys I've gotten this to work
Code:
 
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} irishwidget.com$
RewriteRule ^(.+) http://www.widget.ie/$1 [L,R=301]
But during the transfer I've had to move a folder called "ia" into the cgi-bin, so that, pages that were at irishwidget.com/ia/ are now at widget.ie/cgi-bin/ia/
Is there any thing I can add to get these pages to redirect properly?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 04-02-2007, 10:20 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,325
Nominated 7 Times in 5 Posts
Nominated TOTW/F/M Award(s): 2
Thanks: 0
Thanked 1 Time in 1 Post
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

best option is like this:
Code:
RewriteCond %{HTTP_HOST} ^(www\.)?irishwidget\.com #just in case www is missing from url
RewriteRule ^(.+)  http://www.widget.ie/$1 [L,R=301]
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Car Parts & Accessories Car Parts
:. Cars Ireland Cars Ireland
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
301, question, redirect

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

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
Question about 'Adult Oriented' domains SlitheryImp Domains and domaining 73 21-05-2009 01:34 PM
301 redirects - how long? TheMenace Search Engine Optimisation 4 06-09-2007 09:21 PM
IE7 Question blacknight Webmaster Discussion 4 04-10-2006 11:01 PM
301 Redirects on Windows 2003 Gavin Server / Technical Administration Tips and Queries 7 02-10-2006 07:00 PM
Shorter URLs with 301 redirect blacknight Webmaster Discussion 1 31-08-2006 09:08 PM


Sponsored links

Pepperjam Network
Paid On Results www.zanox.com Get Chitika Premium


All times are GMT +1. The time now is 01:11 AM.


Powered by: vBulletin Version 3.8.4, Copyright ©2000 - 2010, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64