summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-03-04 15:10:02 +0100
committerThomas Lange <code@nerdmind.de>2017-03-04 15:10:02 +0100
commit7178db2be40264e9400f97e1afbf8608bc22768f (patch)
treed9ce61badb985b54d00967d77ede2e8cb98f3cd1
parente3f8e673493730343fdb069f9fffa334b41dca30 (diff)
downloadblog-7178db2be40264e9400f97e1afbf8608bc22768f.tar.gz
blog-7178db2be40264e9400f97e1afbf8608bc22768f.tar.xz
blog-7178db2be40264e9400f97e1afbf8608bc22768f.zip
RewriteBase directive finally removed (trailing slash redirects are now relative to %{REQUEST_URI}).
-rw-r--r--.htaccess11
1 files changed, 3 insertions, 8 deletions
diff --git a/.htaccess b/.htaccess
index 0aadc0a..af8639d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -15,11 +15,6 @@
RewriteEngine On
#===============================================================================
-# Define RewriteBase
-#===============================================================================
-RewriteBase /
-
-#===============================================================================
# ErrorDocument handler
#===============================================================================
ErrorDocument 403 /system/403.php
@@ -41,6 +36,6 @@ RewriteRule ^(feed|search)/$ system/$1/main.php [L]
#===============================================================================
# Trailing slashes
#===============================================================================
-RewriteRule ^(page|post|user)/([^/]+)$ $1/$2/ [R,L]
-RewriteRule ^(page|post|user|feed|search)$ $1/ [R,L]
-RewriteRule ^feed/(post|page)$ feed/$1/ [R,L] \ No newline at end of file
+RewriteRule ^(page|post|user)/([^/]+)$ %{REQUEST_URI}/ [R,L]
+RewriteRule ^(page|post|user|feed|search)$ %{REQUEST_URI}/ [R,L]
+RewriteRule ^feed/(post|page)$ %{REQUEST_URI}/ [R,L] \ No newline at end of file