0
Welcome Guest! Login
0 items Join Now

Default index page - how to set priority order?

  • Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • Small quandary, but I don't know how to fix it... help?

      I have Joomla installed at the root directory and am working on setting up the site, but what I would like site visitors to see when they go to www.domainname.com -- for now at least, while I'm still building the site -- is a single temporary regular html page that I set up and also placed at the root level. So, effectively, what I want is www.domainname.com/index.html to be the default page people see right now, but I'd still like to be able to view and access www.domainname.com/index.php if I type in that URL directly. Then later once the site has been built out, I'd like to remove my temporary index.html page and make the index.php file the default again.

      I am guessing that it is possible to do this inside the htaccess file, but I'm not sure how. I did come across the following code:
      DirectoryIndex index.html index.php

      but when I added it to htaccess, it didn't fix the default order. Anybody have an idea?
      Also, is this an issue that could potentially be browser and/or platform dependent? I.e., if I get the default order to work in one place, do I need to worry about it not working somewhere else?

      Thanks very much for any and all help...!!
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • Once the index.html has been removed and there are no other indexes in the form of .html or .htm - users will be automatically directed to index.php - on my web servers anyway
    • James Spencer / Developer & Support / Hull, UK
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • Hi, sorry, I don't think I explained correctly... Right now I have both index.html and index.php at the root level, but it is the index.php file that is showing up when I type in domainname.com, rather than the index.html file (which is the one I want for right now...). Thoughts?? Thanks :)
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • What I would do is place your joomla install in a subfolder (yoursite.com/joomla) and build away.

      Move your files to a new subfolder and then change your config path file to reflect where your joomla install is located.

      Mike
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • Hmm. Thanks for responding. Is this the simplest way? I was hoping to not have to go to the hassle...
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • You could contact your host to see if they can change the settings
    • James Spencer / Developer & Support / Hull, UK
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • So... I just tried changing .htaccess to htaccess.txt (I don't need SEF quite yet), and then my index.html file showed up again as the default... So it seems like there should be in the htaccess file that can be configured, just not clear (to me) what that might be. For future reference, it would be great if anyone has an idea if a configuration in htaccess is possible.. Thanks again :)
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • That is odd, I have SEF on my website and the HTML page loads first. ???
    • James Spencer / Developer & Support / Hull, UK
  • Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • Yeah, I've had this issue on three different sites using 3 different webhosts, but this is the first time I've been working on a "live" site when it happened, so that's why i wanted to see if I could trouble shoot it. I did end up cloning the site to a subdirectory just to be safe. It may be that that's a better way to work anyway, but if a site is really small and could be done in a day or so, it would be nice to avoid the trouble of having to move things between directories...
    • 's Avatar

    Re: Default index page - how to set priority order?

    Posted 17 years 6 months ago
    • The best thing is to get your hosting provider to edit the priority on your domain, but since my hosting provider doesn't give any good support, I had to do this manually. I used the htaccess file to give priority to html files instad of php files. You can use a list that is as long as you want. It is not nessecary to "rewrite". Good luck :-)

Time to create page: 0.055 seconds