Hi,
I’m trying to redirect all http traffic to https, except the one to the stats URL. That stats URL is reached through the control panel and is basically http://yourdomain.com/stats/
I currently have this in my .htaccess file at the site root, based on looking at other threads here and on the internet.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.) https://%{HTTP_HOST}%{REQUEST_URI} [NC]
RedirectMatch (.)/$ $1/index.html
However, I can’t seem to find a pattern that works for the /stats/ URL. Can anybody help?
Thanks.