hookahmasta
IS-IT--Management
I'm having trouble with the ReWriteCond and ReWriteRule directive. My objective is to redirective to
which works fine currently, but some users might forget to put in the s in https. I made sure that the module is included, and now,
Here's what I got.
RewriteEngine on
ReWriteCond %{HTTPS} !=off
RewriteCond %{HTTP_HOST} !^subdomain\.domain\.com [NC]
ReWriteCond %{HTTP_HOST} !=""
ReWriteCond %{SERVER_PORT} !=80
RewriteRule (.*) [L,R]
For some reason, it's not working. Actually, when I put in it directs to one of other virtual hosts that I got! Does anyone have any idea?
which works fine currently, but some users might forget to put in the s in https. I made sure that the module is included, and now,
Here's what I got.
RewriteEngine on
ReWriteCond %{HTTPS} !=off
RewriteCond %{HTTP_HOST} !^subdomain\.domain\.com [NC]
ReWriteCond %{HTTP_HOST} !=""
ReWriteCond %{SERVER_PORT} !=80
RewriteRule (.*) [L,R]
For some reason, it's not working. Actually, when I put in it directs to one of other virtual hosts that I got! Does anyone have any idea?