Ok, I have a site and a backend.php interface which is in https. I make it with the following;
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
# force www if second level domain
RewriteCond %{HTTP_HOST} ^([^\.]+)?\.([^\.]+)?$ [NC]
RewriteRule .? http://www.%1.%2%{REQUEST_URI} [R=301,L]
#https
RewriteCond %{REMOTE_ADDR} !^127\.[0-9]+\.[0-9]+\.[0-9]+$
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} (.*/backen.*)
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
</IfModule>
It works but I have just lost 5 hours trying to get extensionless php here so backend.php will read as backend or admin or whatever.
Anyone got any ideas please?