Solved

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

Posted on 2004-04-13
3
140 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

730 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