Cpanel: Subdomain redirecting to cgi-sys/defaultwebpage.cgi [closed]

Posted on

Cpanel: Subdomain redirecting to cgi-sys/defaultwebpage.cgi [closed] – Problems with loading a website are often blamed on the Internet connection, but even the most perfectly set up network cannot help if there is no service to reply at your destination. One of the most popular HTTP servers used for this task is Apache2. Much of Apache’s popularity can be attributed to its easy installation and use, but never the less it is possible to run into problems with even the easiest of the software. If you’ve encountered an issue loading your web page, follow these simple troubleshooting methods outlined in this guide to attempt to get your web server back up and working again. Below are some tips in manage your apache2 server when you find problem about apache-2.2, , , , .

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?

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.

Leave a Reply

Your email address will not be published. Required fields are marked *