Jump to content

Recommended Posts

Posted

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

 

www.scienceforums.net/index/how-do-I-make-a-url-without-a-second-extension/the-answer

 

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)

Posted

I don't have a server, just the web hosting company from who I got the domain name.

 

You would have to check with them. As Cretin says, it depends on what they're hosting the web site on.

Posted (edited)

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

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.