aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2024-12-07 20:31:39 +0100
committerThomas Lange <code@nerdmind.de>2024-12-07 21:13:28 +0100
commitdb7b51e00891e5a67e8be7baa2f3385f74174215 (patch)
tree9f30d05e92471443240469e552107161ef2c0a93 /.htaccess
parent8ee04e772c8e8c39407595014f366adf48ba9c31 (diff)
downloadblog-db7b51e00891e5a67e8be7baa2f3385f74174215.tar.gz
blog-db7b51e00891e5a67e8be7baa2f3385f74174215.tar.xz
blog-db7b51e00891e5a67e8be7baa2f3385f74174215.zip
Move webserver config files to "core" directory
... and add `/.htaccess` to the ignore list in `.gitignore`. If one wants to configure Apache by using the good old `.htaccess` file, all they have to do is copying the `core/ws-apache.conf` to `.htaccess`. Because of the `.gitignore`, Git will not list the `.htaccess` file as changed anymore if it contains additional configuration parameters.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess48
1 files changed, 0 insertions, 48 deletions
diff --git a/.htaccess b/.htaccess
deleted file mode 100644
index 55c32d3..0000000
--- a/.htaccess
+++ /dev/null
@@ -1,48 +0,0 @@
-#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
-# Apache configuration [Thomas Lange <code@nerdmind.de>] #
-#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
-# #
-# This file contains the configuration rules for the Apache HTTP server. It is #
-# recommended to include these rules directly into the Apache configuration! #
-# #
-# Additionally, it's recommended to ensure that the AllowOverride directive is #
-# disabled if these rules are included in the Apache configuration. Otherwise, #
-# the Apache HTTP server is checking for .htaccess files on every request. #
-# #
-# AllowOverride None #
-# #
-# NOTICE: If you decide to include these rules directly into the Apache config #
-# and want to set AllowOverride to something other than "None", it might cause #
-# trouble with this .htaccess file which might contain rules that are not per- #
-# mitted by your custom AllowOverride setting in the server config. You should #
-# rename (or delete) this file to prevent Apache from parsing it in that case! #
-# #
-#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
-
-#===============================================================================
-# Error pages
-#===============================================================================
-ErrorDocument 403 /403.php
-ErrorDocument 404 /404.php
-
-#===============================================================================
-# Enable RewriteEngine
-#===============================================================================
-RewriteEngine On
-
-#===============================================================================
-# Forbidden directories
-#===============================================================================
-RewriteRule ^(.git|core|theme/([^/]+)/(html|lang))/ - [F]
-
-#===============================================================================
-# Pass requests to index.php
-#===============================================================================
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . index.php [L]
-
-#===============================================================================
-# Redirect from old to new global static dir
-#===============================================================================
-#Redirect 301 /rsrc/ /static/