Solved

Folder names (or similar) without using the / at the end....

Posted on 2004-04-13
3
136 Views
Last Modified: 2010-04-09
I see several sites that using folders like

domain-name.com/folder_name

now I can do the same except that when I host the above and enter it in my address bar it comes up with:

domain-name.com/folder_name/

now what I want is it to stay:

domain-name.com/folder_name

As this looks a lot cleaner is search engine listings and looks nicer in the address bar.

How do you do this?

Here is an example of a page that does the folder but the folder doesn't force a / at the end:

http://www.travel-library.com/canada-saskatchewan


My server information if it will help, I run a windows server, no php support but asp support and my programming knowledge is none.

This is probably a very easy thing to do but I've just never know the trick.

Thanks for the help,
Stephen
0
Comment
Question by:lnternet
3 Comments
 

Accepted Solution

by:
scottarius earned 125 total points
ID: 10821720
The thing about this is it's not really a folder... Look at some of the other links on the site you provided, like this one:

http://www.travel-library.com/africa/

try taking the last slash off, you'll see it gets put right back on there again.  The slash is put on by the browser when no page is specified, and a default index page is loaded out of the requested directory.  The ones you see around that don't put the ending slash on are actually specific pages being loaded not directories, you just don't see the file extension because they have some kind of re-write rule to make their URL's prettier.  

If you have administrator access to your windows server and know anything about managing IIS you can use this tool to achieve the same kind of results:

http://www.isapirewrite.com/

Other than that there is no "trick" to get the slash to go away if your browsing a directory.

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML table 7 54
jquery adding parameter to hyperlink url 8 35
Library to convert HTML to PDF. 8 45
html input clean up 3 32
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now