Hi all...
Hope someone can point me in the right direction here as am stumped..
I have two domains, same name but one is .com and the other .co.za. The .com domain is 'parked' and points to the .co.za domain.
In the co.za domain my landing page (index.php) has three tabs. The default tab that shows when the site is accessed is (accom.php) and displays search fields allowing visitors to search for accommodation.
However if someone inadvertently types in www.domain.com they are receiving a sequel error as if empty fields were submitted on the search function. This is revealing my code to all and sundry.
I have spoken to my host and their reply as follows....
" I believe what is happening with the .com not showing the website like the .co.za is as a result of your web code.
I have checked that:
- The DNS for the .com and the .co.za correctly resolve to the same hosted server.
- The Apache configuration is pointing both the .com and the .co.za to the public_html folder of domain.co.za.
- Browsing directly to a file I created in the public_html of domain.co.za (not index.php) resolves the same:
- http://www.domain.co.za/test.php
- http://www.domain.com/test.php
This indicates that the problem is happening on a coding level.
I am still pretty new to php and have searched the web for similar errors someone else may be experiencing but have not been able to find a way to resolve this issue...
I hope i have supplied enough information for someone on this forum to be able to say what is wrong or what it is that i should do..
Best regards,