bludit/.htaccess
Luca fabb902452 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]
2017-04-03 12:53:20 +02:00

19 lines
334 B
ApacheConf

AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
# 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]
</IfModule>