Please could anyone help me in my hour of need? :) I have been working on a landing page that's been set up for corporations and their employees. Anyway the gist is, the page is only available via login which is provided via promotional materials.
So I have index.php and it's only available via login using .htpasswd and .htaccess
.htaccess reads
AuthUserFile /my/path/to/.htpasswd
AuthName "Company Name"
AuthType Basic
However, up until now we have had a holding page, index.html which we have now removed so index.php displays when someone calls up http://mydomainname.com/ or http://www.mydomainname.com
If I visit http://mydomainname.com/ or http://www.mydomainname.com, all I get is a 401 Authorisation required page.
But if I visit the http://mydomainname.com/index.php the right page appears.
I have asked the hosting company and all they do is remove the .htaccess file which defeats the object. Theys ay I had an error in my .htaccess file, but it worked ok when there was an index.html page (which was the holding page).