On 8/8/07, Sean O'Connor <sean(a)transabled.org> wrote:
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?
Google "redirect non-www to www" for this one, and you'll get the proper
.htaccess majeek:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^mydomain\.com
RewriteRule (.*)
http://mydomain.com/$1 [R=301,L]
(Not the only way to do it, I'm sure.)
--
Arr, ye emus,
http://emufarmers.com