Monday, November 15, 2004

WildCard Domain (Sub domain)

named
*.YOURDOMAIN.COM. in a 123.123.123.123



apache


DocumentRoot /www/example
ServerName www.example.net
ServerAlias *.example.net


RewriteEngine on


RewriteEngine on
RewriteCond %{HTTP_HOST} ^123.123.123.123(:80)?
$RewriteCond %{HTTP_HOST} ^www.+++.com(:80)?
$RewriteRule ^/(.*) http://www.+++.com/$1[L,R]
RewriteOptions inherit


http://www.uk2raq.com/raqfaq/raqfaqshow.php?faq=80

No comments: