• I know this is probably a simple question for most of you guys, but I’m green and need an answer. How do I get the /blog/index.php file (my blog file) to load without specifying the index.php? I’m planning a new site where the blog is the site and I want people to be able to access it by typing:

    https://www.hotdealsexpress.com/

    instead of:

    https://www.hotdealsexpress.com/index.php

    I know, it’s probably really simple, but I’m an ignoramus, so please don’t laugh at me. Thanks…

    Roger

Viewing 8 replies - 1 through 8 (of 8 total)
  • Delete the index.html file.

    unless i’m mistaken, your site will load anything like index.php or home or whatever. they shouldnt have to type domain.com/index.php. if this is a wordpress site, they should type domain.com and it’ll load index automatically.

    You are mistaken and stubborn and ignorant.

    Most servers are set up that index.html takes precedence over index.php… and since you do have an index.html – I told you what the solution is. If you know better, don’t ask for help.

    Thread Starter froomb

    (@froomb)

    Thanks for the replies. I haven’t put up the hotdealsxexpress.com site yet, so I’ll set it up without an index.html file, I’ll use index.php instead. I was confused about how it would work because with my current site, my blog is in the /blog/ directory and I have to use https://www.froomb.com/blog/index.php for it to work. I thought the same would be true if I used index.php for my home page in the root directory. I see now that that’s not the case.

    demonicume – thanks for your help, moshu – why are you so nasty?

    to froomb: I was in a hurry, and I thought it was you who replied with that smarta** post. Disregard it.

    As for your froomb.com/blog – it should load without index, if you ask your host to make index.php a valid index file. They should know what that means…

    First, thanks for this post. I’ve had the same problem, and elminiating the index.html worked for the intial portion.
    Now, the second problem (probably related to the first, and also because I’m a newby)…
    — I can get to the blog fine, but if I click on any of the links (comment, category, etc.) it takes me to the blog root directory file list—not desirable!

    I’d appreciate your help in figuring out what I may be missing – why would it do this?

    Actually, went back and looked again, and it didn’t fix the problem. Is there some software I need to activate for php to work? If I type in “domain/blog/index.php”, it works, but not if I leave the “index.php” off…

    Didn’t I said just above your first post:
    ask your host to make index.php a valid index file ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Index.php question’ is closed to new replies.