Page 1 of 1

[SOLVED] index.html/index.php recognition issue

Posted: Tue Feb 28, 2012 8:41 am
by burlington
When I design a site, I always put a 'holding' screen message as an index.html file whilst I work on CMSMS in the server. This is because an index.html file is always seen first before the index.php file.

That has worked fine for a long time now until my latest CMSMS project when the system will only recognise the HTML file if either I type the full address OR delete or rename the index.php file. In other words, the system is not conforming to usual practice.

I cannot find out what is causing this. There are no redirects on this domain and I can't see any other control that would direct the visitor to the PHP file.

Any ideas folks?

Thanks

Martin

ps running CMSMS 1.10.3

Re: index.html/index.php recognition issue

Posted: Tue Feb 28, 2012 8:48 am
by Wishbone
This doesn't answer your question, but here is what I do.. Make a simple 'coming soon' template, and a coming-soon page using this template. Make this the default page.

When you're ready for your site to go live, make 'home' your default page.

Re: index.html/index.php recognition issue

Posted: Tue Feb 28, 2012 9:08 am
by uniqu3
Add DirectoryIndex index.html to your .htaccess file.

Re: index.html/index.php recognition issue

Posted: Tue Feb 28, 2012 11:17 am
by burlington
Thanks Unique 3 and Wishbone for your very helpful suggestions. I have changed the .htaccess file and it works like a dream. I think though for future reference a standard 'welcome' template I can use for all projects would not be a bad idea at all, regardless of any problems.