htaccess
- Read more about htaccess
- Log in to post comments
# Redirect http to https
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.panticz\.de [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.panticz.de/$1 [L,R=301]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L]
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ page [L]
# Allow directory listing
# enable "AllowOverride All" in VHost configuration first
Options +Indexes
# Allow show bash files
Allow from all
AddType text/plain .sh .bash
# Enable PHP5
AddType