Forum Moderators: phranque
I had an SSL installed and now there is an http and an https version for every page on the site, you can type in the http and https version of a page and they both show up. My intent would be to make sure that there is only one version of a page for SEO purposes (whether Google see's the http and https version of one page as two separate pages or not, want to be safe than sorry).
There is only one directory called "/secure" that should be https, the rest of the pages should only be http. I would like to be able to redirect any https pages that should be non-secure to http, and vice versa.
The /secure folder is self-contained and calls its css and images from within that folder. The rest of the site's pages call images and the css from directories in the public_html. My file list looks something like this:
/articles (should be non-secure)
/images (should be non-secure)
/styles (should be non-secure)
/manage (should be non-secure)
/secure (should be secure)
and then there area about 70 pages in the public_html.
So in my .htaccess file, what is the best way to 301 redirect non-secure https pages to http, and make sure the secure https pages stay that way?
Thank you!
Jim