Hiya, these are similar to the request for openfontlibrary, minus the rewrite for all URLs. This one is only for the wiki.
There are two courses of action. I would ideally like to have .htaccess support
so that I can catch any bots and change these lovely things without having to
trouble you all, but otherwise, please enable the second option. Oh, the wiki
bits are for making wiki paths easy to use and non-ugly as well. THX!
I would like to either get .htaccess support enabled. This is the best best option.
add this bit to the CREATE vhost <Directory /> in the vhosts conf:
# anything that contains a dot without a colon should be left alone
RewriteRule ^wiki/(edit)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/insert/(.*)$ /wiki/index.php?action=edit&title=$1 [L,QSA]
RewriteRule ^wiki/(watch)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(delete)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(protect)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(history)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/[^:]*\. - [L]
# anything that contains a slash without a colon should be left alone
RewriteRule ^wiki/[^:]*\/ - [L]
# redirect to main page
RewriteRule ^wiki/*$ /wiki/index.php?title=Main_Page [L,QSA]
# anything else is to be treated as a title
RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
# anything that contains a slash is to be left alone
Can I help get this to happen faster? Please :)
urgh. mod_rewrite is extremely heavy, and i'd be worried about the load impact. any chance you could redo those as RedirectMatches or Aliases?
Ok, I figured out how to get the wiki to redirect properly with ALIAS.
Here is the generic overview:
We need to do this:
1.) mv /srv/create.freedesktop.org/create_web/wiki /srv/create.freedesktop.org/create_web/w
2.) Add this to the vhosts for create.freedesktop.org above (and outside) the <Directory />:
Alias /wiki /srv/create.freedesktop.org/create_web/w/index.php
3.) Update /srv/create.freedesktop.org/create_web/w/LocalSettings.php
Change the following vars to:
$IP = "/srv/create.freedesktop.org/www/w";
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
Then test and hope that my testing on my own system worked :) Ping me if problems.
That should then allow our wiki to have pretty URLs...thx...and it should be much much faster with ALIAS....
Can I help anymore?
Yet again, hope I can move this along. Is there anyway I can help?
not a problem on twisp