Garayed.com  

Go Back   Garayed.com > Apache Configurations
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-2008, 10:49 AM
Leon
 
Posts: n/a
Default mod_rewrite https://domain.com >> http://www.domain.com

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:07 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.