[MediaWiki-l] htaccess and stuff
Mark A. Hershberger
mah at everybody.org
Sun Jan 20 19:44:49 UTC 2013
On 01/20/2013 02:02 PM, Steve VanSlyck wrote:
> First, um, is this the correct list to be posting general quetsions to?
This list works for these sorts of questions, yes.
> I'm really not sure what this means. There are all kinds of definitions
> of "canonical paths" out there but none I've found have given me an
> example of what a canonical path actuall IS.
> In general, I want my users to be seeing "www" in their address path. I
> also don't want script path and article path arguing with each other. I
> renamed my /wiki/ directory to /w/ and then changed my .htaccess file to
> what is shown below. It appears to work for me, but is it correct?
Stripped down to its essential bits (from
https://en.wikipedia.org/wiki/Canonical_form) what you're looking for is
the "standard way of presenting [an] object". The object in question
here is the URL for any page on your site.
So, your canonical path for the Main_Page would be:
> Should I change $wgServer = "http://mysite.us"; to $wgServer =
> "http://www.mysite.us"; and get rid of the redirect at the beginning?
> Do something else?
If your site is generally accessible on the Internet, it wouldn't hurt
to use the actual domain name. We might spot something that could help
us solve your problem that way.
With the way you have $wgServer set MediaWiki thinks pages should be at
But, this isn't the canonical URL since your .htaccess is is pushing
everyone to the www.mysite.us domain.
So, yes, you should change $wgServer to "http://www.mysite.us".
Language will always shift from day to day. It is the wind blowing
through our mouths. -- http://hexm.de/np
More information about the MediaWiki-l