From fabb90245253f86a738644a225e791d192990528 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 3 Apr 2017 12:53:20 +0200 Subject: [PATCH] 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] --- .htaccess | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 912ffa81..0245900a 100644 --- a/.htaccess +++ b/.htaccess @@ -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] - \ No newline at end of file +