Jump to content

Forcing a HTTP from a HTTPS?


gabster

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.