Added a trailing / to evade an error

Added the trailing / after index.php to evade an internal server error on the Uberspace Apache installation were the lack of this broke the site, it internally replaced the URL-Path contents e.g. with index.phpadmin/ which won't work.

Also added a rule to make this folder our DocumentRoot, since this site is mostly run under domains/subdomains.

May be an issue related to my RedirectRule from HTTP to HTTPS placed in all DocumentRoots:

#RewriteCond %{HTTPS} !=on
#RewriteCond %{ENV:HTTPS} !=on
#RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
This commit is contained in:
Luca 2017-04-03 12:53:20 +02:00 committed by GitHub
parent 96d3efaa65
commit fabb902452

View File

@ -5,11 +5,14 @@ AddDefaultCharset UTF-8
# Enable rewrite rules
RewriteEngine on
# Make this Folder our base
RewriteBase /
# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]
# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]
RewriteRule ^(.*) index.php/ [PT,L]
</IfModule>