Force non-www - .htaccess

1
2
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

1 Response

It's still open for debate whether www or non-www is the master race, so if you happen to be a fan or bare domains, here you go:

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.