Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have the following configuration:

I've setup A record:

*.mywebsite.com IN A [IP ON HOSTIN - shared]

The rewrite rule for grabbing the subdomain looks like this:

RewriteCond %{HTTP_HOST} ^(^.*)\.mywebsite.com
RewriteRule (.*)  dostuff.php?username=%1

When I try to access any subdomain: bla.mywebsite.com I get this: mywebsite.com/cgi-sys/defaultwebpage.cgi

Any ideas what's going on?

share|improve this question
Contact your system administrator. –  Michael Hampton Jan 18 '13 at 17:52

1 Answer 1

up vote 1 down vote accepted

Sounds like you have either existing rules, or the server itself has some defaults.

share|improve this answer
How can I check for these rules or should I contact the hosting support? –  FakeHeal Jan 18 '13 at 10:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.