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/ ).
parent
72cbd74a11
commit
0df9f8796e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue