How do you end a URL with .com/ ...

3 replies
...instead of a filename like index.php?

I'd really like to be able to have people type the name of my website directly, without having to add '"index.php" or whatnot to the end of it (and without having a redirect that adds "index.php" to the URL after it's been typed in, either.)

Any of the webmasters here willing to volunteer about how to do that?

Thanks!


Essence
#com or #end #url
  • Profile picture of the author write-stuff
    You could put a page on your server called either default.htm or index.html and do a META redirect to your PHP page.
    - Russ
    {{ DiscussionBoard.errors[229651].message }}
  • Profile picture of the author Mike Bogowski
    Ideally you won't need to do anything.

    Most webservers are configured so that if you dont put a filename it will search for an index file and display that instead. If this isn't the case you will need to change your DirectoryIndex (in apache) to something like:

    DirectoryIndex index.php index.html

    You can add this in your htaccess file. Hopefully this is clear for you . If it sounds too advanced get in touch with your hosting provider.
    {{ DiscussionBoard.errors[229654].message }}
  • {{ DiscussionBoard.errors[229673].message }}

Trending Topics