Thanks for your posts Ilmari :)
I've added the rewrite code form the following link to my .htaccess file: http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_ac...
Do you think I need to add the extra parentheses you added in your last post Ilmari to my .htaccess?
Will mod_rewrite in .htaccess use more server resources than mod_alias in http.conf would? I guess my original problem was caused by some strange Apache server configuration? Does anyone have any idea what this might have been?
Matthew
On 08/02/2008, Ilmari Karonen nospam@vyznev.net wrote:
Ilmari Karonen wrote:
Hmm... since you're already using mod_rewrite for the secure connection stuff, why not try using it instead of Alias for the short URLs too? Something like:
RewriteRule ^wiki(/.*)?$ /w/index.php$1 [L,NS,QSA]
ought to do it.
...although, come to think of it, it might be even better to try it like this:
RewriteRule ^wiki(/(.*))?$ /w/index.php?title=$2 [L,NS,QSA]
That way, you'll avoid passing title via PATH_INFO, and any character mangling issues that might cause. (Both work just fine for me, but your Apache installation might be different. The comments in DefaultSettings.php do warn about possible problems with path info, so it might be worth checking.)
-- Ilmari Karonen
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l