Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 02c6f77

Browse files
committed
Rewrite rule to remove trailing slash commented, because of instable behaviour on various installation: with baseurl or without
1 parent 7bef109 commit 02c6f77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.htaccess

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ SetEnv APPLICATION_ENV development
1313
RewriteRule ^.*$ - [NC,L]
1414

1515
## Remove trailing slash
16-
RewriteRule ^(.+[^/])/$ http://%{HTTP_HOST}/$1 [R=301,L]
16+
# RewriteRule ^(.+)/$ $1 [R=301,L]
17+
# RewriteRule ^(.+[^/])/$ http://%{HTTP_HOST}/$1 [R=301,L]
1718

1819
## To redirect all users to the site WITH the 'www.' prefix
1920
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]

0 commit comments

Comments
 (0)