Forum Moderators: phranque

Message Too Old, No Replies

https redirect?

         

wheel

2:26 pm on Sep 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



At one point I had an ssl certificate on my site, so https:// url's worked. And some folks linked to me using the https version of the urls. I've since dropped the certificate.

Google however, is indexing some of the https url's when I do a site: search on my domain. Since I no longer have an SSL certificate, apache serves up the first SSL enabled site in the apache config file - so it's serving another domain when you visit https://

This concerns me, and I'd also like the juice from the https links; not certain if I'm getting that right now.

What's the best way to approach this?
- put a certificate back in place with no redirect, so that I have dupe http and https pages?
- put a certificate back in place and 301 redirect back to the http version
- just 3010 redirect https: connections back to the http pages without a cert.

jdMorgan

3:52 pm on Sep 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The answer depends on whether you have server config file access.

If so, then your third option is best: Redirect https requests for the domain (or any, or specified domains) back to the requested domain, but using the http protocol. You can examine the SERVER_PORT and HTTP_HOST variables and back-reference the requested host in mod_rewrite to do this easily.

Jim