Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pages don't show up without ".html" - How to fix?

    When I type example.com/blog.html, there it is. But when I type example.com/blog, I get an error message. Same thing with all of the pages.

    If this is resolved on another thread kindly redirect me. It may be a script thing, idk. Thank you!

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,038
    Thanks
    15
    Thanked 240 Times in 240 Posts
    Only the index or default pages show up that way. So if you have a link that says
    Code:
    http://www.mysite.com/blog
    and the page show up it's an index page in a folder named blog. There is a caveat, the server may be set to add .html to all requests.

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Location
    USA
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not an expert in this, but it is my understanding that in the directory, example.com/blog there is a file the kicks the site off. I always thought that file had to be named index.html. I have heard it could be called something else, but your web-hosting company should have some documentation on that.

  • #4
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much!

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,702
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Quote Originally Posted by Newb1982 View Post
    I get an error message.
    What does the error message say? Error 404 or error 500? Error 500 means that you’re probably trying to do the right thing but made a mistake somewhere. Error 404 means that you probably don’t know what you’re doing or have to do to achieve what you want.

    What you are looking for is called a “search engine friendly URL”, a. k. a. “pretty URL” which can be achieved by changing the server configuration or, if that’s not an option, by adding an .htaccess file to your server’s/web space’s root directory with some respective rules in it.

    You’ve got the keywords now (“pretty URL”, “htaccess”), now do your homework.

  • #6
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for your suggestions. I will look around and check with my server. It is probably documented somewhere


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •