[MediaWiki-l] htaccess and stuff

Steve VanSlyck s.vanslyck at spamcop.net
Sun Jan 20 19:55:30 UTC 2013


If you want to email me backchannel I'll email you back with the site 
name n such.

On 1/20/2013 14.44, Mark A. Hershberger wrote:
> 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:
>    http://www.mysite.us/w/Main_Page
> Right?
>> 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
>    http://mysite.us/w/Main_Page
> 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".
> HTH,
> Mark.

More information about the MediaWiki-l mailing list