This is a discussion on 301 redirect question within the Coding Help forums, part of the Webmaster Help 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 | Members List | 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; 24-01-2007 at 11:53 PM. |
| |||||
| If you're on Apache: http://www.irishwebmasterforum.com/s...d_rewrite.html
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||||
| 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.
__________________ Search Engine Optimisation - Red Cardinal Internet Marketing Internet Consultant Ireland | Search Engine Optimisation Services Catering Company Dublin - My sister's handmade canape company! |
| |||||
| With my method you can do one page or a million pages at once
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||||
| 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
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||||
| 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 :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. 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 | 68 | 26-08-2008 02:27 AM |
| 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 |