XILO Community Forum

Support 0845 034 6444 • Sales 0800 084 2421

Go Back   XILO Community Forum > Customer Support > Support Queries > before index.html/htm
Support Queries This forum should be used to contact XILO's support team should you have any problems with your account.

Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Reseller
sacha is on a distinguished road
 
sacha's Avatar
 
Posts: 27
Join Date: May 2006
Default before index.html/htm - 20/06/2006, 9:57 AM

Hello,
Is there a file name that the servers are set to look for before index.html/htm? I would like to put up a holding page to temporarily make the main site not so obvious while I tinker with it.
Thanks- Sacha
Reply With Quote
  (#2 (permalink)) Old
Techie & Moderator
Kieran is on a distinguished road
 
Kieran's Avatar
 
Posts: 769
Join Date: Apr 2006
Location: Swindon, UK
Default Re: before index.html/htm - 20/06/2006, 1:16 PM

Only a staff member could tell you the actual order of preference that apache is set to check for index files on your server, but .html is usually the one that overides everything else. For example index.html will overide index.shtml and index.php

This means your best plan is to add a .htaccess pointer to the index you want to show, so that to see the real index (which you might want to do in testing) you would have to go direct to the index.html page. Anyone going to just the URL with no page specified would see the page you specified in the .htaccess.

The following code in a .htaccess file in the public_html directory will make the page they see on visiting your URL "holding.html". When you want to go back to normal, just delete the line in .htaccess

Code:
DirectoryIndex holding.html
Hope this helps
Reply With Quote
  (#3 (permalink)) Old
Reseller
sacha is on a distinguished road
 
sacha's Avatar
 
Posts: 27
Join Date: May 2006
Default Re: before index.html/htm - 20/06/2006, 2:19 PM

Thanks very much, that solves it for me!
Reply With Quote
  (#4 (permalink)) Old
Reseller
sacha is on a distinguished road
 
sacha's Avatar
 
Posts: 27
Join Date: May 2006
Default Re: before index.html/htm - 20/06/2006, 2:40 PM

Is it kosher to use this same method for a re-direct to an outside url? I've tried it and it seems to function, just want to know if it is okay to do it this way.
Thank you!
Reply With Quote
  (#5 (permalink)) Old
Techie & Moderator
Kieran is on a distinguished road
 
Kieran's Avatar
 
Posts: 769
Join Date: Apr 2006
Location: Swindon, UK
Default Re: before index.html/htm - 20/06/2006, 2:49 PM

It depends what code you want to send to the browser or search engine that is accessing the URL. If you actually want to redirect to another url it is best to use temporary or permanent redirects which cause codes to be sent to the browser to indicate that a redirect has actually occured. You can activate such redirects in cpanel.
Reply With Quote
  (#6 (permalink)) Old
Reseller
sacha is on a distinguished road
 
sacha's Avatar
 
Posts: 27
Join Date: May 2006
Default Re: before index.html/htm - 20/06/2006, 4:02 PM

thank you very much!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP includes on HTML page Vic Carrara Support Queries 3 18/03/2008 6:17 PM
CGI/JAVA (html) Chat Simon Support Queries 2 18/12/2006 12:05 PM


Powered by vBulletin | XHTML | © Copyright 2003-2008 XILO Communications Ltd. All rights reserved. E&OE