[SOLVED]Subdomain redirection problem
Posted: Fri Aug 15, 2008 4:22 pm
I'm currently having an issue with redirecting a subdomain I've created and was wondering of anyone here could help.
Here's the scenario:
Domain is http://www.domain.com which contains index.php
Subdomain is test.domain.com
Creating this via the CPanel is all good and it created a directory: http://www.domain.com/test which contains an empty cgi-bin directory and a holder index.html file.
Browsing to test.domain.com works fine, the contents of index.html are displayed
I then create an index.php and place it in http://www.domain.com/test and remove the index.html file
Now, browsing to test.domain.com redirects to http://www.domain.com and loads the index.php file there.
I can't for the life of me understand why it is doing this, as it makes no sense to me. I've tried various settings in the .htaccess file from Google searches, but to no avail.
Can anyone help with this? Thanks in advance.
Here's the scenario:
Domain is http://www.domain.com which contains index.php
Subdomain is test.domain.com
Creating this via the CPanel is all good and it created a directory: http://www.domain.com/test which contains an empty cgi-bin directory and a holder index.html file.
Browsing to test.domain.com works fine, the contents of index.html are displayed
I then create an index.php and place it in http://www.domain.com/test and remove the index.html file
Now, browsing to test.domain.com redirects to http://www.domain.com and loads the index.php file there.
I can't for the life of me understand why it is doing this, as it makes no sense to me. I've tried various settings in the .htaccess file from Google searches, but to no avail.
Can anyone help with this? Thanks in advance.