We no longer take subscriptions to our magazine at www.hinduismtoday.com thru the web site. As such there was no need to renew the SSL cert, so I let it lapse. But some viewers somehow are coming in to "regular" pages using https... not sure how or why. They were getting an "Certificate expired" message. I went ahead and delete SSL from the site in the VirtualMin Edit Site options configurate, so port 443 is completely disabled and removed from all directives. Now we get a different message of you try an https/www.hinduismtoday.com/somepage.... I search the web and tried all manner of redirects for this but none are working..
The latest version I tried is very simple, in .htaccess
RewriteCond %{HTTPS} =on RewriteRule ^$ http://%{HTTP_HOST} [L,R]
but it's not working...
Any clues?] on how to redirect any attempt for https to http?
Howdy,
Are you receiving an error of some sort?
Or is it just not doing any sort of redirect?
If you are receiving an error, what shows up in $HOME/logs/error_log?
-Eric
If we try: (you can try it)
https://www.hinduismtoday.com
Apache redirects to the CentOS Apache 2 HTTP Test Pageif you try for an internal document... e.g.
https://www.hinduismtoday.com/modules/smartsection/category.php?category...
you just get a 404 document not found.
I moved the two lines to the very end of the .htaccess (it's got a lot of other redirects above) to make sure it takes precedence
RewriteCond %{HTTPS} =on
RewriteRule ^$ http://%{HTTP_HOST} [L,R]
It's almost as if it is not doing anything... There were a number of other variations for this rewrite code... this was the simplest...