directive placed in a virtual host for the non-canonical
hostname(s).</p>
-<example><pre>
-<VirtualHost *:80>
- ServerName undesired.example.com
- ServerAlias example.com notthis.example.com
-
- Redirect / http://www.example.com/
+<example>
+<VirtualHost *:80><br />
+<indent>
+ ServerName undesired.example.com<br />
+ ServerAlias example.com notthis.example.com<br />
+<br />
+ Redirect / http://www.example.com/<br />
+</indent>
+</VirtualHost><br />
+<br />
+<VirtualHost *:80><br />
+<indent>
+ ServerName www.example.com<br />
+</indent>
</VirtualHost>
-</pre></example>
+</example>
<p>You can alternatively accomplish this using the
<directive module="core" type="section">If</directive>