martinvandebelt
New member
- Joined
- Sep 25, 2008
- Messages
- 1
Hi,
I hope anybody could answer my question, because i wanted to resolve my problem as soon as possible.
My problem:
I want to forward a sub-domain to a normal file on the main domain. This is what i got now:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.domein\.tld$ [NC]
RewriteRule ^$ /file.php?name=%1
RewriteCond %{HTTP_HOST} ^([^.]+)\.domein\.tld$ [NC]
RewriteCond %1 !^www$ [NC]
RewriteRule ^$ /file.php?name=%1
But when i am requesting subdomain.domain.tld, i got a "Apache functioning normally"-message.
Can anybody help me?
Edit: Problem solved - Close this topic.
I hope anybody could answer my question, because i wanted to resolve my problem as soon as possible.
My problem:
I want to forward a sub-domain to a normal file on the main domain. This is what i got now:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.domein\.tld$ [NC]
RewriteRule ^$ /file.php?name=%1
RewriteCond %{HTTP_HOST} ^([^.]+)\.domein\.tld$ [NC]
RewriteCond %1 !^www$ [NC]
RewriteRule ^$ /file.php?name=%1
But when i am requesting subdomain.domain.tld, i got a "Apache functioning normally"-message.
Can anybody help me?
Edit: Problem solved - Close this topic.
Last edited: