[Mediawiki-l] Short URL reflecting wiki structure, no www
thomas.dalton at gmail.com
Wed Aug 8 12:11:28 UTC 2007
> I am putting in a new wiki. I have the install in the root of the
> domain. Currently, my urls look like:
It might well be easiest to move the installation to a subfolder (/w/
seems to be standard). The problem with having it in the root
directory is that the url for the file "index.php" is the same as the
url for the article "index.php", which makes everything rather
> First, I want to make sure that the www is never used in urls, and
> that if someone types in www.mydomain.com, the page that loads is
> mydomain.com. I think have managed to stop jumping from www to no-www
> between loging in by using $wgServer = "http://mydomain.com"; in my
> localsettings.php page, but someone can still load a page by typing
> the www in the address bar. Any thoughts on this one?
That seems fine to me.
> Finally, what I'd *prefer* would be to reflect the site's structure
> within the URL, and end up with something like:
> This obviously addresses those pages which belong in categories and/or
> subcategories only.
The problem is that the category structure doesn't really work like
that. An article can be in multiple categories, and there can only be
one article with each name, even in different categories. Having the
urls like that would be redundant, you would simply have to ignore the
category and subcategory parts, so why make your users type them in?
More information about the MediaWiki-l