Continued a bit:
[mailer.git] / .htaccess
index b6819a9..0d28312 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,8 +1,19 @@
-Options -Indexes\r
-DirectoryIndex index.php\r
-\r
-<IfModule mod_rewrite.c>\r
-       RewriteRule     ^cms/(.*)/wht/(.*)$             modules.php?module=$1&what=$2           [L]\r
-       RewriteRule     ^cms/(.*)/act/(.*)$             modules.php?module=$1&action=$2         [L]\r
-       RewriteRule     ^cms/(.*)$                              modules.php?module=$1                           [L]\r
-</IfModule>\r
+Options -Indexes
+DirectoryIndex index.php
+
+# HTTPoxy mitigation
+<IfModule mod_headers.c>
+       RequestHeader unset Proxy
+</IfModule>
+
+<IfModule mod_rewrite.c>
+       RewriteEngine On
+       RewriteRule ^cms/(.*)/wht/(.*)$                       modules.php?module=$1&what=$2         [L]
+       RewriteRule ^cms/(.*)/act/(.*)$                       modules.php?module=$1&action=$2       [L]
+       RewriteRule ^cms/(.*)$                                modules.php?module=$1                 [L]
+       # @TODO When ext-imprint is finished RewriteRule ^cms/index/wht/impressum$                 modules.php?module=index&what=imprint [L]
+       # @TODO When ext-imprint is finished RewriteRule ^modules.php?module=index&what=impressum$ modules.php?module=index&what=imprint [L]
+       # @TODO When ext-terms is finished RewriteRule ^cms/index/wht/agb$                 modules.php?module=index&what=terms [L]
+       # @TODO When ext-terms is finished RewriteRule ^modules.php?module=index&what=agb$ modules.php?module=index&what=terms [L]
+       # @TODO When ext-terms is finished RewriteRule ^agb.php$ modules.php?module=index&what=terms [L]
+</IfModule>