Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-29-2010, 07:30 PM   PM User | #1
Newb1982
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Newb1982 is an unknown quantity at this point
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!
Newb1982 is offline   Reply With Quote
Old 11-29-2010, 07:39 PM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,146
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
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.
DrDOS is offline   Reply With Quote
Old 11-29-2010, 08:31 PM   PM User | #3
dkaufman11
New to the CF scene

 
Join Date: Nov 2010
Location: USA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
dkaufman11 is an unknown quantity at this point
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.
dkaufman11 is offline   Reply With Quote
Old 11-29-2010, 09:52 PM   PM User | #4
Newb1982
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Newb1982 is an unknown quantity at this point
Thank you very much!
Newb1982 is offline   Reply With Quote
Old 11-30-2010, 12:07 AM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,585
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 01-29-2011, 01:45 AM   PM User | #6
LWsep10
New to the CF scene

 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
LWsep10 is an unknown quantity at this point
Thank you for your suggestions. I will look around and check with my server. It is probably documented somewhere
LWsep10 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:10 PM.


Advertisement
Log in to turn off these ads.