www.gemal.dk is gone
I never like using www.gemal.dk. I always used gemal.dk. So now I've added an Apache rewrite rule to my site so that www is removed from the location. Fx if you go to http://www.gemal.dk/mozilla/blogupdates.html you will land at http://gemal.dk/mozilla/blogupdates.html.
In danish: Du kan læse mere om kampen mod www forvirringen på fuckwww.dk.
Ads:
7 Comments
Could you share the Apache rewrite rule with us so we can easily implement one for our own sites ?
Comment by CeeJay at June 17, 2004 10:01 PM | PermalinkI suppose it's something like:
ServerName www.gemal.dk
RedirectPermanent / http://gemal.dk/
One might add a ServerAlias for other domains if necessary.
Well, so much for tags :)
[VirtualHost *]
ServerName www.gemal.dk
RedirectPermanent / http://gemal.dk/
[/VirtualHost]
Change [ ] with tags.
Though, this isn't exactly a rewrite-rule.
Comment by Peter Brodersen at June 18, 2004 08:43 PM | PermalinkRewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^/(.*)$ http://%1/$1 [L,R=301]
Gemal, don't work here. :-(
I use this (http://no-www.org/faq.php#how_class_b) rule and works fine.
Comment by Maxwel Leite at June 22, 2004 02:33 PM | PermalinkHave you noticed what happens to the "Up" option in Mozilla's Link Toolbar when using no-www standard? It becomes http://dk/ by default.
Comment by Mikael Aktor at June 24, 2004 08:33 AM | Permalink
Could you explain the the rewriting rules you add?
Comment by inkel at June 17, 2004 02:47 PM | Permalink