]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
web commit by JoshTriplett: Anchor the RewriteRule patterns to the end of the URL...
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 15 Apr 2007 07:20:29 +0000 (07:20 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 15 Apr 2007 07:20:29 +0000 (07:20 +0000)
doc/tips/redirections_for_usedirs.mdwn

index b6e85aac80ab771d7a00ffe75e16c88cf061582e..51a73a7ad310379f479b74b0025f6158d6cd0ade 100644 (file)
@@ -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