subdomain redirect

Using a single web hosting account to host multiple sites

subdomain redirect

Postby d » Mon Aug 08, 2005 2:21 am

I want to do this:
redirect from
http://test.domain.de/index.htm
to
http://domain.de/test/index.htm
my code is not working:confused:

RewriteCond %{HTTP_HOST} ^(.*)\.domain\.de$
RewriteCond %{HTTP_HOST} !^www\.domain\.de$
RewriteRule (.*) http://domain.de/%1$1 [P]

help me!!
d
 
Posts: 1
Joined: Mon Aug 08, 2005 12:40 am
Location: Greece

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 34 guests

cron