|
@@ -70,7 +70,7 @@ class ApacheMatcherDumper extends MatcherDumper
|
|
|
$regexes[] = sprintf("%sRewriteCond %%{PATH_INFO} %s\nRewriteRule .* %s [QSA,L,%s]", $conditions, $regex, $options['script_name'], $variables);
|
|
|
|
|
|
// add redirect for missing trailing slash
|
|
|
- if ('/$' === substr($regex, -2) && '^/$' !== $regex) {
|
|
|
+ if ('/$' === substr($regex, -2)) {
|
|
|
$regexes[count($regexes)-1] .= sprintf("\nRewriteCond %%{PATH_INFO} %s\nRewriteRule .* /$0/ [QSA,L,R=301]", substr($regex, 0, -2).'$');
|
|
|
}
|
|
|
}
|