mostafatalebi Posted May 6, 2013 Share Posted May 6, 2013 Hello I have setup a subdomain on my main domain as follows: test.mydomain.com folder: public_html/test I have also tried to create a folder at top level of site, but neither worrkes and the page is redirect to the defaultpage.cgi . what should I do? Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/ Share on other sites More sharing options...
Q695 Posted May 6, 2013 Share Posted May 6, 2013 is the folder even there? go to localhost if it is on your computer. Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428646 Share on other sites More sharing options...
mostafatalebi Posted May 6, 2013 Author Share Posted May 6, 2013 yes the folder is there. All the materials (wp) are there. But it does not work. I have set it to test.site.com and have made the folder also at the proper place (top of the tree, above public_html), but nothing happend. I have also set it as site.com/test/ but again it miss to work. Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428658 Share on other sites More sharing options...
jazzman1 Posted May 6, 2013 Share Posted May 6, 2013 What's happening when you're trying to reach - site.com/test? It redirects you to other page or it just shows you an empty content? And also, is it a dedicated or a shared hosting server? Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428689 Share on other sites More sharing options...
trq Posted May 7, 2013 Share Posted May 7, 2013 We can't really help without seeing the relevant config. Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428757 Share on other sites More sharing options...
mostafatalebi Posted May 7, 2013 Author Share Posted May 7, 2013 so what details shall I put here? I set the subdomain to test.domain.com then I set the folder (using cpanel) to be either test or public_html/test but none of them work. When i try to access the subdomain it just shows a default webpage from cgi folder implying that the page could not be found. Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428823 Share on other sites More sharing options...
jazzman1 Posted May 7, 2013 Share Posted May 7, 2013 The new directory called "test" should be located into the public_html - that's your web root directory, not above the public_html. So, delete and re-create it again and just create a index.php with simple echo "test page" inside the index. Open the browser and try to reach the index file - your_site.com/test Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428842 Share on other sites More sharing options...
mostafatalebi Posted May 7, 2013 Author Share Posted May 7, 2013 I have done that but the same result is achieved again. Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428859 Share on other sites More sharing options...
mostafatalebi Posted May 7, 2013 Author Share Posted May 7, 2013 Ha! it works now. It seems something like cache or other similar issues existed. thanks everybody Quote Link to comment https://forums.phpfreaks.com/topic/277708-subdomain-does-not-work/#findComment-1428861 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.