Skip to content

Commit 0a7e4d2

Browse files
authored
Merge pull request #149 from dotkernel/trailing-slash
enforced trailing slash
2 parents e8ea53e + fd82876 commit 0a7e4d2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

public/.htaccess

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ RewriteCond %{REQUEST_FILENAME} -l [OR]
88
RewriteCond %{REQUEST_FILENAME} -d
99
RewriteRule ^.*$ - [NC,L]
1010

11+
RewriteCond %{REQUEST_METHOD} GET|HEAD
12+
RewriteCond %{REQUEST_URI} !/$
13+
RewriteCond %{REQUEST_URI} !\.[^/]+$
14+
RewriteRule ^(.*)$ /$1/ [R=301,L]
15+
1116
# The following rewrites all other queries to index.php. The
1217
# condition ensures that if you are using Apache aliases to do
1318
# mass virtual hosting, the base path will be prepended to

0 commit comments

Comments
 (0)