Reply LinkBack Thread Tools Search this Thread
Old 27-02-2004, 11:28   #1 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,937
301 redirect 'versions'. What-what?

Code:
RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ [OR] RewriteCond %{HTTP_HOST} ^www.example.com$ RewriteRule ^(.*)$ http://www.example.co.uk [R=301,L]
(via CPanel add-on domain redirect)

Code:
(via manually editing the htaccess file)

…the significant difference being…?

TIA
  Reply With Quote
Old 27-02-2004, 11:57   #2 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,344
not sure but some good stuff here

http://www.webmasterworld.com/forum23/1600.htm

webmaster haha - they were the days!

according to that and a few other things one way google likes and the other it doesnt - but i am not sure which.

very helpful i hear you say!
  Reply With Quote
Old 27-02-2004, 12:18   #3 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester
Posts: 9,664
not arf
I use one on here, 2nd example i think.
__________________
Linked In :: Last.fm
..................
  Reply With Quote
Old 27-02-2004, 12:58   #4 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,937
I definately know that the simple Redirect 301 method is the one recommended to keep Google sweet, so I guess I'll steer clear of using CPanel's method.

Cheers Mik.
  Reply With Quote
Old 27-02-2004, 13:46   #5 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester
Posts: 9,664
redirect 301 /index.html http://www.designerstalk.com/forums - what dt is using
__________________
Linked In :: Last.fm
..................
  Reply With Quote
Old 27-02-2004, 13:55   #6 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,937
fwiw™, the index.html part is redundant.
/ is effectively identical to /index.html
Both refer to the default root page.
-

After a little look it appears that the CPanel/longer method works by rewriting the url rather than simply redirecting.
Redirect 301 only works for those users typing in the root/basic domain name with the alternative TLD.


e.g. you want to redirect yourdomain.com (your mop-up TLD) to yourdomain.co.uk (your true site directory)

Those attempting to visit yourdomain.com/page.php will get an error when a Redirect 301 is in use.
The longer method simply surplants the yourdomain.com portion with yourdomain.co.uk which should resolve to an existing page/directory (yourdomain.co.uk/page.php).

So, each has their benefits over the other.
Which one you choose depends on your needs and what urls you expect visitors to arrive on.

Last edited by Bill Posters : 27-02-2004 at 14:11.
  Reply With Quote
Old 26-07-2007, 22:47   #7 (permalink)
imagn
Registered User
 
Join Date: Jul 2007
Posts: 21
Definitely want to submit the changes to Google via sitemap.xml file as well
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8