Skip to content

Commit efa6817

Browse files
authored
Clarify conditions for trailing slash in comment
Update comment to clarify conditions for adding trailing slash.
1 parent 4e7f9d8 commit efa6817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mu-plugins/_core-auto-trailing-slash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'mod_rewrite_rules',
1010
static function (string $rules) {
1111
$insertion = <<<HTACCESS
12-
# Add trailing slash if doesn't end with / and doesn't contain a dot
12+
# Add trailing slash if URL doesn't contain a dot and doesn't already end with /
1313
RewriteCond %{REQUEST_URI} !(\.|/$)
1414
RewriteRule ^(.+)$ /$1/ [R=301,L]
1515

0 commit comments

Comments
 (0)