this is a bit of a pickle, and a pickle I wouldn’t be in if I hadn’t inhereted some one elses problem unfortunately.
At my company, we have a summer business and a winter business. Instead of setting up both businesses in the same CMS with similiar content, a previous contractor installed the winter website in the base public_html folder, and the summer website in a subdirectory.
This creates problems when summer comes, as people visit our website and still see the winter website, despite us wanting them to go to summer. We also don’t want to make the winter website inaccessible by directing everyone from root into /summer/ and getting rid of /winter. We also have some SEO strength we’ve earned there…
My Theorized Solution is as follows:
1- Move all of the winter website into /winter/ (alter these are getting combined and built into a drupal CMS, so forgive the proliferation of subdirectories)
2- Redirect all internal content as follows to keep SEO rankings for the pages we have as best as we can and not confused visitors:
#redirect internal to winter page
RewriteCond %{REQUEST_URI} ^/?
RewriteRule (.*) /winter/$1 [R=301]
That code does infact work.
3- Redirect ONLY the landing page (http://www.website.com/) to the internal summer page /summer/
I was able to accomplish the first two no problem. The problem is with the third. I could really use some help here! I’ve googled for hours, and I don’t understand .htaccess well enough to even know how to ask the question. I’ve tried to find some basic tutorials but more often than not I just find short little snippets of how to accomplish a task and nothing on the task itself.
So, anybody? Bueller?
based upon the information, Please use the followinf code in sequence: