Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Making it so users can type "mysite.com/news" instead of "mysite.com/news.htm"
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Making it so users can type "mysite.com/news" ...
Making it so users can type "mysite.com/news" instead of "mysite.com/news.htm"
17-03-2009 9:19 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi!
Just a quick one - How do I make my website display a page without users having to type in the ".html"? for example - www.concept-data.com/news instead of having to type the ugly www.concept-data.com/news.html.
When I try visiting the shorter version I just get a 404 after a long wait. What am I doing wrong?
Thanks guys,
Nicole
Just a quick one - How do I make my website display a page without users having to type in the ".html"? for example - www.concept-data.com/news instead of having to type the ugly www.concept-data.com/news.html.
When I try visiting the shorter version I just get a 404 after a long wait. What am I doing wrong?
Thanks guys,
Nicole
3 REPLIES 3
Re: Making it so users can type "mysite.com/news" instead of "mysite.com/news.htm"
17-03-2009 9:55 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
one quick way out of it is to create a folder news and make the main html file in that folder index.html
Re: Making it so users can type "mysite.com/news" instead of "mysite.com/news.htm"
23-03-2009 4:41 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
perfect, Thanks Jim!
Re: Making it so users can type "mysite.com/news" instead of "mysite.com/news.htm"
05-04-2009 4:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Should be noted if you ever program in php you can also do similar with .php scripts. EG /news/index.php?paramer=1 can become /news/?parameter=1 - You can omit the file name (thus hiding if its a php or perl script). Apache allows you to set the default filenames in the hosting directory. These are usually (in order) index.htm, index.html, index.php/cgi etc. Therefore if you send visitors to /news it will pick the first default file in that list that it can find. So if you had both index.htm and index.php it would select index.htm and send it to the visitor. Obviously without the .htm file it would send the php output instead and as mentioned above you can pass parameters without he file name being in the url.
Hope that helps.
Hope that helps.
I need a new signature... i'm bored of the old one!
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Making it so users can type "mysite.com/news" ...