Hi, I am attempting to use mod_rewrite in httpd.conf to force a number of things IE: https, state, and www. I have https and state working but can not seem to get www going . What am I missing. Thanks in advance
- Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.example.com/mydir/welcome.do
RewriteCond %{REQUEST_URI} ^/ks*
RewriteRule (.*) https://www.example.com/mydir/welcome.do?state=KS
RewriteCond %{REQUEST_URI} https://example.com
RewriteRule (.*) https://www.example.com/mydir/welcome.do
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]