diff options
author | Thomas Lange <code@nerdmind.de> | 2017-03-04 15:10:02 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-03-04 15:10:02 +0100 |
commit | 7178db2be40264e9400f97e1afbf8608bc22768f (patch) | |
tree | d9ce61badb985b54d00967d77ede2e8cb98f3cd1 | |
parent | e3f8e673493730343fdb069f9fffa334b41dca30 (diff) | |
download | blog-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-- | .htaccess | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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 |