I have a problem with access to my webstore. So I have a domain example.com and I have a script installed on the public_html folder and it is protected with password since I am accessing the script through url and I don't want anyone who type my url to have access to it.
I installed WordPress in public_html folder just to find out that WordPress index file overrided my script index file and I lost the access to my script. After I uninstalled the WordPress I lost the index file but luckily I had a backup and was able to replace the index file and got the access to the script so it is working fine now. Main reason I got that domain was to build the webstore but I didn't expect that I cant have the script and the webstore on same domain.
After researching I found out that I can install wordpress on subdomain so I created a subdomain webstore.example.com and the folder is public_html/webstore and installed wordpress in that folder.
Since I am new to this I spent numerous hours to build the webstore just to find out later that when trying to access it through the url webstore.example.com it is actually asking for password and this doesn't work for me since my customers don't have the username and password. So my guess is that since the webstore folder is accessible through the public_html folder it is protected from the password that protects that folder.
My question is: What can I do to make my webstore accessible without asking my customers for user and password?
Any help and ideas will be greatly appreciated. Thank you in advance