Removed recommendation to non-www, following #7

This commit is contained in:
An Phan 2015-02-10 21:14:24 +08:00
parent de890cb3fb
commit 809967e8dc
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
This works for _any_ domain. [Source](https://stackoverflow.com/questions/4916222/htaccess-how-to-force-www-in-a-generic-way)
### Force non-www
It's actually [recommended](http://no-www.org/) to remove `www` from your domain. Surprise surprise!
It's actually [open](https://devcenter.heroku.com/articles/apex-domains) [for](http://yes-www.org/) [debate](http://no-www.org/) whether www or non-www is the master race, so just in case you're a fan or bare domains, here you go:
``` apacheconf
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]