Jump to content

How do I make a URL without a second extension?

Recommended Posts

For example, without .html.


Or, www.scienceforums.net/index rather than www.scienceforums.net/index.php


I've even seen it where they just keep adding deeper pages, each separated by a slash. Like so




My webpages are set up as a normal file structure. I put all .htm pages in the home folder, and images, .css, etc., in a deeper folder. Is this as simple as not giving the file an extension? For example, naming it example rather than example.htm (it just occured to me :D) If so, I still don't understand how to make one file a deeper part of the other (in the file hierarchy and resulting URL)

Link to comment
Share on other sites

There are two methods for that,


1. use URI mapping through the Web Server or the Framework, for example in Java Server, you have web.xml


2. using File System hierarchy, Where under your web root folder, every page is a folder (not a page)

named as a page, under that folder is a single page named home.xxx


http://www.scienceforums.net = http://www.scienceforums.net/home.php


.. / a / b / c = .. a / b / c / home.xxx

Edited by khaled
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.