I have following vhost redirecting 80 to 443:
<VirtualHost *:80> ServerName site.mydomain.com ServerAlias www.site.mydomain.com DocumentRoot /srv/htdocs Redirect permanent / https://site.mydomain.com <Directory /srv/htdocs> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost>
The problem is that it does not prevent to redirect to other sites, e.g. by:
Which rewrite rule would fix such issue?