Welcome to WebmasterWorld Guest from 54.159.44.227

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Changed SSL Cert causing Google errors

How to fix in htaccess?

     

grandma genie

7:27 pm on Apr 20, 2013 (gmt 0)

5+ Year Member



Hello,

I changed my site URL from https to http and

I changed the URL for my SSL cert and removed the www. and now am getting these types of errors on Google searches:

Unable to connect

Firefox can't establish a connection to the server at www.example.com.

The site could be temporarily unavailable or too busy. Try again in a few moments.

If you are unable to load any pages, check your computer's network connection.

If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

If I check the Google links, they all show the https:// link. Just removing the s allows the link to work.

Naturally this is hurting my traffic. So this has been placed in the htaccess file, but doesn't seem to be working. What is wrong:

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule (.*) [example.com%{REQUEST_URI}...]

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule (.*) http://www.example.com%{REQUEST_URI}

Grandma

phranque

10:07 pm on Apr 22, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



does your server configuration include a virtual host for that hostname and secure protocol?

grandma genie

2:50 am on Apr 23, 2013 (gmt 0)

5+ Year Member



I am using a Managed Host setup on a CDN hosted VPS. Since my manager set up the site I am assuming he used the example.com for both the hostname and secure protocol. He suggested I change my SSL certificate to using the example.com name instead of the previous www.example.com name. The rewrite conditions shown are his attempt to fix the broken links, but it is not working. When I advised him that my traffic was hurting because of this, he was not willing to try anything else. He claims he has 30 years in this type of business, so my complaints are falling on deaf ears. He says the broken links will take care of themselves as soon as Google indexes the site with the new setup. Not sure how long that would take. It has only been four days. Is he right? Or am I doomed?

phranque

1:48 pm on Apr 27, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



He claims he has 30 years in this type of business

tim berners-lee demonstrated the first web server in late 1990 and it was several years later before apache was release, so i would disregard the "30 years" claim.

my guess is the server isn't configured to "listen" to port 443, or whatever port is used for secure web protocol on your server.
what happens when you request these?
http://www.example.com:443/
http://example.com:443/

grandma genie

12:55 am on Apr 30, 2013 (gmt 0)

5+ Year Member



Hi phranque,

The http: //www.mywebsite.com:443/ brings up an error message

"Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please."

If I use this [mywebsite.com:443...] then it brings up my home page.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month