Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So I've got two different sub domains, one is empty (i.e. http://xyz.org) and the other is www, (i.e. http://www.xyz.org).

Now, I can't find the files for the first, when I ping the domain without the sub domain it goes to a different IP address that keeps timing out. When I ping the www. subdomain, it goes to the current Wordpress site.

What could be causing this? Here's my current .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^(.*) http://www.domain.com/$1  [QSA,L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteRule ^(.*)(\.htm|\.html)$ /contact [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

#php_flag display_errors on
#php_value error_reporting 8191
share|improve this question

1 Answer 1

up vote 4 down vote accepted

Your domain probably did not set the wildcard handler for domains in DNS or set it wrong!

There should be an A record pointing to *.example.com (example being your domain name, of course)

*.example.com.           3600     A     192.0.2.1

This indicates a wildcard DNS entry with a keepalive of 3600 seconds pointing to an IP.

Please consult your provider, or if there is a DNS system, change it to reflect a wildcard entry.

share|improve this answer
    
Most defiantly a DNS issue, –  Jeff F. Jun 28 '12 at 12:43

Your Answer

 
discard

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.