Options Indexes FollowSymLinks Require all granted AllowOverride All ServerAdmin webmaster@localhost RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteCond %{LA-U:REQUEST_FILENAME} -d RewriteRule ^/.*[^/]$ https://%{HTTP_HOST}%{REQUEST_URI}/ [R=301,L,QSA] SetEnvIf X-Forwarded-Proto "https" HTTPS=on SetEnvIf X-Forwarded-Proto "https" REQUEST_SCHEME=https DocumentRoot /home/rhscz/public_domains/pf.rhscz.eu Alias /rhscz /home/rhscz/public_domains/pf.rhscz.eu Order allow,deny Deny from all AllowOverride All Order allow,deny Deny from all AllowOverride All