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( ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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" ); ?> 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.. |
| |||||
| If you're on Apache: http://www.irishwebmasterforum.com/s...d_rewrite.html |
| |||||
| Quote:
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 |
| |||||
| With my method you can do one page or a million pages at once |
| |||||
| Quote:
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. |
| |||||
| 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 |
| |||||
| Quote:
In essence the spider will eat it up but the index will spit it out. |
| ||||
| 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. |
| ||||
| 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]
Is there any thing I can add to get these pages to redirect properly? |
| |||||
| 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 |
| Tags |
| 301, question, redirect |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
| ||||
| | ![]() | |||
| | ![]() | |||