0
Welcome Guest! Login
0 items Join Now

Index.htm vs. Index.php

  • Index.htm vs. Index.php

    Posted 17 years 1 month ago
    • I know there is a quick solve for this but for some reason I can't get it to work. I have a index.htm file on my root along with my Joomla index.php. The web URL is defaulting to the index.php which my client does not want until I get the new Joomla site ready. I have tried changing the index.htm to default, Default, home, anf Home .htm and .html with no luck.

      Is there a fix by changing the code in the htacess.txt file or the configuraiton.php file?

      Let me know if there is an answer.

      Thanks in advance.

      Tom
    • Tom Patrick Patterson
    • March's Avatar
    • March
    • Sr. Rocketeer
    • Posts: 150
    • Thanks: 1

    Re: Index.htm vs. Index.php

    Posted 17 years 1 month ago
    • Talk to the server admin. I use IIS 6 (Windows) and can prioritize which files get served up first through IIS config. So tell your server admin to set the index.htm file to have priority. Then of course you'll need to get him/her to reverse the change once done. If there's another way for users to do it, I'd also be interested. Maybe under Apache regular users can have more control but I don't know. ::M::
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Index.htm vs. Index.php

    Posted 17 years 1 month ago
    • For Apache, use the DirectoryIndex directive.

      Add the following to .htaccess:
      DirectoryIndex index.html

      Just FYI, you can also provide alternatives like so:
      DirectoryIndex index.html index.php privateproperty.html
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
  • Re: Index.htm vs. Index.php

    Posted 17 years 1 month ago
    • I thought it was more of .htm vs. .html
    • "You can learn a lot from a dummy. So, pay attention to yourself." Quote by me.

Time to create page: 0.089 seconds