homepage Welcome to WebmasterWorld Guest from 54.204.168.212
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
301 Redirect Help
TNJed

5+ Year Member



 
Msg#: 7640 posted 4:44 pm on Jan 26, 2005 (gmt 0)

I recently bought 2 domains. One is a homonym of the other. Say, www.widget-2.com and www.widget-two.com. I would like to redirect all users who type in www.widget-2.com to the correct url of www.widget-two.com.

I've never used a 301 before but I've been searching these forums and the web and come up with the simple answer of the following in my .htaccess file.

Redirect 301 / [widget-two.com...]

I loaded this in the root directory of www.widget-2.com but it doesn't work. It still shows the site place holders from the host. What am I missing?

[edited by: trillianjedi at 4:49 pm (utc) on Jan. 26, 2005]
[edit reason] Widgetised [/edit]

 

TNJed

5+ Year Member



 
Msg#: 7640 posted 8:10 pm on Jan 26, 2005 (gmt 0)

Nevermind. It was resolved with my host. Don't know what they did but they wrote it was fixed.

highsteppin

10+ Year Member



 
Msg#: 7640 posted 10:19 pm on Jan 26, 2005 (gmt 0)

I've got basically the same issue and I don't know what to do. I want everyone who types in widgets-old.com to be aware that they've been moved to widgets-new.com. Currently, it just displays whichever one they used, since both domains point to the same server/IP address.

If I put in my .htaccess file a

redirect 301 [widgets-old.com...] [widgets-new.com...]

it doesn't seem to make any difference. Any suggestions?
thanks,
-dave

TNJed

5+ Year Member



 
Msg#: 7640 posted 10:28 pm on Jan 26, 2005 (gmt 0)

This is what's in my .htacess file

Redirect 301 / [widgets-new.com...]

and that's it.

You don't need to put in the full url of your old site. The first slash in the redirect signifies your root directory of the site you load it onto and includes everything in it. Like an include_all.

highsteppin

10+ Year Member



 
Msg#: 7640 posted 10:08 pm on Jan 27, 2005 (gmt 0)

No good, if I just use

Redirect 301 / [widget-two.com...]

it breaks my site entirely, it seems to be in an infinite loop.

Any further advice?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved