?
Solved

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

Posted on 2004-04-13
3
Medium Priority
?
143 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 500 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

762 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