![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| Hi there, recently I was stunned by Google showing some URLs of my domain like this: https://mydomain.com. Put aside the question, where it dig it, I got a following problem: the SSL-Certificate is only issued for the www.domain.com. So the browsers start warning when trying to open an URL without "www". The first idea was to use the Apache mod_rewrite to form the URL like http://www.domain.com That's what I tried with no result: RewriteEngine On RewriteCond %{SERVER_PORT} ^443$ RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://www.domain.com/$1 [L,R] I checked that the port is 443 and the rewrite engine is functioning. In this case it just did nothing. Is it possible that the browser gets an idea, that the URL has been rewritten, and so prohibits the processing to avoid cheating with certificates? Any idea? Thanks. Leon |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |