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.


June 17, 2004 09:44 AM | Posted in Site info

Ads:

Back Next

7 Comments

Could you explain the the rewriting rules you add?

Site icon Comment by inkel at June 17, 2004 02:47 PM | Permalink

Could you share the Apache rewrite rule with us so we can easily implement one for our own sites ?

Site icon Comment by CeeJay at June 17, 2004 10:01 PM | Permalink

I suppose it's something like:


ServerName www.gemal.dk
RedirectPermanent / http://gemal.dk/


One might add a ServerAlias for other domains if necessary.

Comment by Peter Brodersen at June 18, 2004 08:41 PM | Permalink

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 | Permalink

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^/(.*)$ http://%1/$1 [L,R=301]

Site icon Comment by Henrik Gemal at June 19, 2004 12:51 PM | Permalink

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 | Permalink

Have 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

Post a comment




Remember Me?




Please enter the security code you see here

.
You're here: Home - www.gemal.dk is gone
Get the Mozilla Firefox browser