diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-15 07:20:29 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-15 07:20:29 +0000 |
commit | 0df9f8796ec9c8c0e90a29a0178123c728f6aa29 (patch) | |
tree | a8ea955328732a12079000aafc75f2a9224c3dc9 /doc/tips | |
parent | 72cbd74a1159944eb09efa753e270cdf850819e7 (diff) |
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/ ).
Diffstat (limited to 'doc/tips')
-rw-r--r-- | doc/tips/redirections_for_usedirs.mdwn | 6 |
1 files changed, 3 insertions, 3 deletions
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 |