All pastes #762041 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-05 08:48 UTC
rendered paste body
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://foo.example.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} example\.com [NC]
RewriteRule ^(.*)$ http://foo.example.com/$1 [R=301,L]