homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Changed SSL Cert causing Google errors
How to fix in htaccess?
grandma genie

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


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 (.*) https://example.com%{REQUEST_URI}

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




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

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)

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?


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

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?

grandma genie

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

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 https://www.mywebsite.com:443/ then it brings up my home page.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved