On Tuesday 09 June 2009 10:22:27 Matthias Buecher / Germany wrote:
As it seems that the new Wiki won't be available soon, could someone
please fix the redirection for the old Wiki.
Instead of just replacing the domain, at least add .html add the end
of the redirection and replace all slashes / with (2f).
Then all the wiki links in the forum and from external pages would work
and help the user to find information.
If Apache either by mod_alias (AliasMatch, RedirectMatch):
http://httpd.apache.org/docs/2.2/mod/mod_alias.html
Or by mod_rewrite (see guides):
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
The server is nginx, the following (recursive) rules should work (but aren't
tested, I just had a quick look at [1]):
rewrite ^([^/]+)/(.*)$ $1(2f)$2
rewrite ^/(.*)$ http://oldwiki.openwrt.org/$1.html permanent
Cheers,
Malte
[1]http://wiki.nginx.org/NginxHttpRewriteModule
--
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel