Forum Moderators: phranque
I have been testing drafts of a site, so right now all my live files are in the root directory for the domain. Let's call it domain.com.
I should soon be wanting to replace the live site with the content located in domain.com/draft5.
The content is static html, and my subdirectory structure isn't changing, so I don't need to do any redirecting in that way.
I'd just like to make it so that when the user types in domain.com, they see the content that's located in the draft5 directory, without seeing draft5 in the address bar. I think mapping is the term I'm looking for here.
Some content is in subdirectories, so if they're viewing or linked into domain.com/press, they should see content physically located at domain.com/draft5/press, and so on.
I would like to, at the same time, redirect all requests for anything at [domain.com...] to be 301 redirected to [domain.com...] Just getting rid of the www sitewide.
Any help with my headache will be hugely appreciated. Thank You.
If you only have access to the .htaccess file, then you can do a simple site-wide rewrite of simple URLs to the draft folder.
The www and non-www issue can be fixed with a simple site-wide 301 redirect, code for which is posted somewhere in this forum almost every day.