Skip to content

Commit

Permalink
Removed unnecessary rewrite rule that caused 404s
Browse files Browse the repository at this point in the history
If you'd request a URL like 'http://localhost/tmp/Phile/sub/index', it would redirect to 'http://localhost/sub' instead of to 'http://localhost/tmp/Phile/sub'
  • Loading branch information
infostreams committed Dec 22, 2014
1 parent 41f95d1 commit ee7b374
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
# Change this path, if you have installed PhileCMS in a subdirectory of the website root.
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} (.*)$
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
Expand All @@ -35,4 +29,4 @@
#####################################
# directory listings are disabled
#####################################
Options -Indexes
Options -Indexes

0 comments on commit ee7b374

Please sign in to comment.