Forum Moderators: phranque

Message Too Old, No Replies

Forcing http from https?

Redirecting a https page to http

         

gabstero

4:41 pm on Mar 28, 2008 (gmt 0)

10+ Year Member



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