[Mediawiki-l] Shorter URLs without mod_rewrite for 1.5.7?

Brion Vibber brion at pobox.com
Fri Mar 17 19:26:32 UTC 2006


Colin Donald wrote:
> Could someone please advise on the best method for
> creating shorter URLs on 1.5.7 like this without
> mod_rewrite?
> 
> www.mysite.com/articlename

I strongly recommend against this, as this reserves the entire URL namespace for
the wiki and will break anything trying to load a real file from the server
(such as the many standard or semi-standard locations for robots.txt,
favicon.ico, etc)

At this point you'll have painted yourself into a corner and either have to make
a lot of special exceptions or just have lots of inaccessible things. Bad place
to be.

> I've looked at the rewrite rules advice
> 
> http://meta.wikimedia.org/wiki/Rewrite_rules#Getting_URLs_like_those_on_Wikimedia_sites
> 
> and then the non-rewrite methods and the talk for
> them, which indicates many previous methods don't work
> with 1.5.x

That seems unlikely; nothing in 1.5 would make this any different from 1.4.

-- brion vibber (brion @ pobox.com)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20060317/ccc0d65c/attachment.pgp 


More information about the MediaWiki-l mailing list