From: Edward Z. Yang Date: Wed, 6 May 2009 04:47:35 +0000 (-0400) Subject: Fix typo preventing canonicalization. X-Git-Url: https://repo.or.cz/w/xhtml-compiler.git/commitdiff_plain/cfd7e8082881dd55548170a3dc51dccd41adeab2 Fix typo preventing canonicalization. Signed-off-by: Edward Z. Yang --- 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) {