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

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

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

Post 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
Last edited by burlington on Tue Feb 28, 2012 11:18 am, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: index.html/index.php recognition issue

Post 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.
uniqu3

Re: index.html/index.php recognition issue

Post by uniqu3 »

Add DirectoryIndex index.html to your .htaccess file.
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: index.html/index.php recognition issue

Post 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.
Post Reply

Return to “The Lounge”