[UPHPU] httpd.conf RedirectPermanent

Lonnie Olson lists at kittypee.com
Tue Apr 7 11:56:06 MDT 2009


On Tue, Apr 7, 2009 at 7:37 AM, Justin Hileman
<justin at justinhileman.info> wrote:
> <IfModule mod_rewrite.c>
>  # Canonical domain name rewrite
>  RewriteCond %{HTTP_HOST} !^justinhileman\.info$ [NC]
>  RewriteRule (.*) http://justinhileman.info/$1 [L,R=301]
> </IfModule>

Justin's method accomplishes your goals, keeps you down to a single
Vhost per site.  BTW as Justin mentioned mod_rewrite can give a
"permanent" redirect too.

--lonnie



More information about the UPHPU mailing list