From cfd7e8082881dd55548170a3dc51dccd41adeab2 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 6 May 2009 00:47:35 -0400 Subject: [PATCH] Fix typo preventing canonicalization. Signed-off-by: Edward Z. Yang --- htaccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htaccess.php b/htaccess.php index c908263..080ae74 100644 --- a/htaccess.php +++ b/htaccess.php @@ -115,7 +115,7 @@ foreach ($allowed_dirs as $dir => $recursive) { $full_dir_exp = implode('|', $big_exp); // prefer the extension-less URL -$n[] = 'RewriteCond %{THE_REQUEST} \.html\x20$'; +$n[] = 'RewriteCond %{THE_REQUEST} \.html\x20'; $n[] = "RewriteRule ^(($full_dir_exp)[^/]+)\.html$ \$1 [NS,R=301]"; foreach ($allowed_dirs as $dir => $recursive) { -- 2.11.4.GIT