I'm having this problem with redirection with subdomains and hope someone here can help.
Here is the scenario:
I have a domain, www.domain.com
I have created a subdomain, blog.domain.com, which contains an index.html file.
When browsing to blog.domain.com, the contents of the index.html file are displayed and all is well.
Now, if I remove the index.html file and replace it with (a valid PHP) index.php, when browsing to blog.domain.com, it now automatically loads index.php from www.domain.com.
Am not sure why this is happening. I've performed some Google searchs and tried various redirects in the .htaccess file but to no avail.
What ideally I want is that browsing to blog.domain.com loads the index.php file from that directory and displays blog.domain.com in the browser.
Has anyone come across this before and has a solution? Any help would be much appreciated. Thanks in advance!
Here is the scenario:
I have a domain, www.domain.com
I have created a subdomain, blog.domain.com, which contains an index.html file.
When browsing to blog.domain.com, the contents of the index.html file are displayed and all is well.
Now, if I remove the index.html file and replace it with (a valid PHP) index.php, when browsing to blog.domain.com, it now automatically loads index.php from www.domain.com.
Am not sure why this is happening. I've performed some Google searchs and tried various redirects in the .htaccess file but to no avail.
What ideally I want is that browsing to blog.domain.com loads the index.php file from that directory and displays blog.domain.com in the browser.
Has anyone come across this before and has a solution? Any help would be much appreciated. Thanks in advance!