Re: [us...@httpd] Rewrite rules question

2009-04-22 Thread Igor Cicimov
The following works for me RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ https://www.domain.com.au$1 [R=301,L] Cheers, Igor On Thu, Apr 23, 2009 at 8:07 AM, André Warnier wrote: > John Oliver wrote: > >> A site has the following rules: >> >> RewriteEngine on >> RewriteBase / >> Rewrite

Re: [us...@httpd] Rewrite rules question

2009-04-22 Thread André Warnier
John Oliver wrote: A site has the following rules: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] I've been asked to ensure that www.domain.com goes to https://domain.com so I tried: RewriteEngine

[us...@httpd] Rewrite rules question

2009-04-22 Thread John Oliver
A site has the following rules: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] I've been asked to ensure that www.domain.com goes to https://domain.com so I tried: RewriteEngine on RewriteBase / Rew