Apache + plesk vhost problem: .htaccess ignored!
- by DaNieL
Hi guys, i have a problem with a simple apache configuration.
When the user ask for https://mydomain.com i have to redirect it to https://www.mydomain.com, becose my https certificate is valid just for the domain with www.
I create the vhost.conf into my /var/www/vhosts/mydomain.com/conf/ directory, with inside:
<Directory /var/www/vhosts/mydomain.com/httpsdocs>
AllowOverride All
</Directory>
And my .htaccess file into the /var/www/vhosts/mydomain.com/httpsdocs/ is:
RewriteEngine on
RewriteCond %{HTTPS_HOST} ^mydomain\.com
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L]
But seem like the .htaccess is completely ignored.
Any idea?