Jump to content

How do I make a URL without a second extension?

Featured Replies

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)

  • Author

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

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.

  • Author

Ah, I see. Well they have a bunch of web tools I can use, like Joomla, Wordpress, etc. I'll have to start using them to find out :)

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

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.