From 0df9f8796ec9c8c0e90a29a0178123c728f6aa29 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 15 Apr 2007 07:20:29 +0000 Subject: web commit by JoshTriplett: Anchor the RewriteRule patterns to the end of the URL, to avoid matching .html, .rss, or .atom in the middle of an URL (such as http://ikiwiki.info/bugs/Feeds_link_to_index.html_instead_of_directory/ ). --- doc/tips/redirections_for_usedirs.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/tips') diff --git a/doc/tips/redirections_for_usedirs.mdwn b/doc/tips/redirections_for_usedirs.mdwn index b6e85aac8..51a73a7ad 100644 --- a/doc/tips/redirections_for_usedirs.mdwn +++ b/doc/tips/redirections_for_usedirs.mdwn @@ -9,14 +9,14 @@ be adapted to other situations. RewriteCond $1 !^/ajaxterm # the wiki, so RewriteCond $1 !^/cgi-bin/ # don't rewrite them RewriteCond $1 !.*/index$ - RewriteRule (.+).html $1/ [R] + RewriteRule (.+).html$ $1/ [R] # rss feeds RewriteCond $1 !^/~ RewriteCond $1 !.*/index$ - RewriteRule (.+).rss $1/index.rss + RewriteRule (.+).rss$ $1/index.rss # atom feeds RewriteCond $1 !^/~ RewriteCond $1 !.*/index$ - RewriteRule (.+).atom $1/index.atom + RewriteRule (.+).atom$ $1/index.atom -- cgit v1.2.3