Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On my hosting account, I created a new subdomain in cpanel. Let's say,

When I try to access it works perfectly. However, when I try to access, it redirects me to

How do I fix this?


It appears the .htaccess at the root of the webserver might have something to do with this as well. The rules are as follows:

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !/beta/index.php$ RewriteRule ^(.*)$ /beta/index.php [R=302,L]

If I type in, I get redirected to because of the rules. How do I exclude from the above rewrite rules?

share|improve this question

closed as off-topic by Hyppy, Jenny D, fuero, Jim B, EEAA May 4 at 21:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 5 down vote accepted

Did you visit the subdomain before you added it in cpanel? If so, your browser might be caching the "<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>" bit cpanel serves if you visit an unknown hostname. You could try removing the cache or test it with another browser (or even with wget/curl). If apache actually still serves the default html, check if the subdomain is created properly.

share|improve this answer
Ok, further to the above edit, you're right - accessing from another computer just redirects me to Can you please help with the .htaccess rules? –  Donniel Thomas Jun 27 '11 at 20:57
Sorry about the late response. You were right, it was a caching issue! –  Donniel Thomas Jul 10 '11 at 5:52
glad i saw this post before i was going to start looking at and playing with httpd.conf –  Mayhem Feb 7 at 13:13

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