RewriteEngine On RewriteBase / RewriteCond %{SERVER_PORT} !=443 RewriteRule ^(.*)$ https://drahthaar-barbarossas.de/1 [R,L] AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php # Example .htaccess wich allows to parse .html as php #AddType application/x-httpd-php .html order allow,deny deny from all php_value default_charset UTF-8