Forum Moderators: phranque
[edited by: Ocean10000 at 5:44 pm (utc) on Apr 20, 2014]
[edit reason] Examplified [/edit]
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L] Listen is now a required directive. If it is not in the config file, the server will fail to start. This is a change from previous versions of Apache.