Neue Short-URL-Regeln

Die neuen Short-URLs werden nicht mehr mit rewrites gemacht, sondern durch eine besondere Anordnung der Pfade in der Apache config (nach der Anleitung unter http://foswiki.org/Support/ShorterUrlCookbook):
ScriptAlias /bin "/home/webhomes/wiki.doebe.li/htdocs/bin"
Alias /pub "/home/webhomes/wiki.doebe.li/htdocs/pub"
Alias /robots.txt "/home/webhomes/wiki.doebe.li/htdocs/robots.txt"
Alias /ich-will-keine-bots "/home/webhomes/wiki.doebe.li/htdocs/ich-will-keine-bots"
Alias / "/home/webhomes/wiki.doebe.li/htdocs/bin/view/"

In LocalSite.cfg muss der script-Pfad auf /bin gesetzt werden. Das kann im Script http://wiki.doebe.li/bin/configure gemacht wreden.

Folgende Rewrites werden dadurch überflüssig:
     # If we used a topic or web name, rewrite it into view
     # RewriteCond %{REQUEST_FILENAME} !/bin/
     # RewriteCond %{REQUEST_FILENAME} !/pub/
     # RewriteCond /home/webhomes/wiki.doebe.li/htdocs/data%{REQUEST_FILENAME}.txt -f [OR]
     #  RewriteCond /home/webhomes/wiki.doebe.li/htdocs/data%{REQUEST_FILENAME} -d
     #  RewriteRule ^(.*)$ /bin/view$1 [PT]

     # If we used a script name, rewrite it into twiki/bin
     # RewriteCond %{REQUEST_FILENAME} !/bin/
     # RewriteCond %{REQUEST_FILENAME} !/pub/
     # RewriteCond %{REQUEST_FILENAME} ^/([^/]+)/
     # RewriteCond /home/webhomes/wiki.doebe.li/htdocs/bin/%1 -f
     # RewriteRule ^/[^/]+/(.*)$ /bin/%1/$1 [PT]

-- BeatDoebeli - 15 Dec 2011
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding arbeitsgruppe.ch? Send feedback