Forum Moderators: phranque

Message Too Old, No Replies

Redirect permanent - elevating directory to domain

Could someone clarify?

         

Busynut

2:55 pm on Mar 7, 2003 (gmt 0)

10+ Year Member



Hi all,
I'm in the process of elevating a directory (and all subdirectories under it) to it's own domain. I've read the tutorials here and many, many posts, plus many tutorials elsewhere. I *think* I've got it, but I've been known to make mistakes every time I think I've got the mod rewrite stuff straight. I wonder if someone wouldn't mind confirming if this is right or wrong?

Present site structure is:
[widgets.com...]

New site will be:
[thingies...]

So I'd like to redirect everything as is - just moving from the present top domain to it's own domain. Here's what I've come up with:

# Permanently redirect from olddirectory and subdirectories to new site and directories
Redirect permanent /thingies [thingies.com...] [R=301,L]

Questions:
- will this redirect all the subdirectories and pages under "thingies" to the same pages at the new site? The site structure and pages have remained the same.
- should there be a slash at the end of that redirect statement? i.e. thingies.com/
- I would be adding this to my present htaccess file (Rewrite engine on) at widget.com - should I put it at the top level directory (widgets) or should I place it in the folder which is presently called thingies?
- Is there a particular order within the htaccess file where this should be? meaning... I've got my list of error documents, rewrite conditions for bad bots, etc.

Sorry to be so dense, I realize this is a topic which has been discussed constantly here. If I missed finding a specific example on elevating a directory to a domain please forgive me (and point me in the right direction?).

Busynut

2:07 am on Mar 8, 2003 (gmt 0)

10+ Year Member



Oops nevermind. Found the answers by digging a little harder. Once the DNS changes have propagated I'll be able to test. Thanks anyway.