gabster Posted April 1, 2008 Share Posted April 1, 2008 Hi Gang! New kid on the block with a redirect question. For some unknown reason, google picked up one of my Added Domains (hosted on the main server) URLs as "https://www.AddedDomain.com". There is no SSL needed for that one. I do however have the primary domain where the SSL certification is assigned to (http://www.PrimaryDomain.com)- a shopping cart with later checkout pages where the "https" is needed. But I don't want google to show that "https://www.AddedDomain.com" since the AddedDomain is a completely other web page if used with the correct "http://www.AddedDomain.com" URL. Now, this might be a root certification problem, meaning that every Added Domain in the Primary hosting will inherit the SSL certification, but until I find that out how to change it, I thought of adding a mod rewrite of some sort that forces every hit that lands on "https://www.AddedDomain.com" to be redirected to "http://www.PrimaryDomain.com". How would that code look like in the .htaccess file? Does that make sense? thanks! gabstero. Quote Link to comment https://forums.phpfreaks.com/topic/99012-forcing-a-http-from-a-https/ Share on other sites More sharing options...
inbyronwetrust Posted April 11, 2008 Share Posted April 11, 2008 Gabser, I am have this exact same problem, and was about to post this question. (looks like TechCrunch linked to my site as https://www instead of http://) anyone have a solution for this? I tried this: Options +Indexes +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond %{HTTPS} =on RewriteRule ^(.*)$ http://www.thechiplab.com /$1 [R=301,L] but with no luck... Quote Link to comment https://forums.phpfreaks.com/topic/99012-forcing-a-http-from-a-https/#findComment-515015 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.