|
abbeyvet -> RE: display online without .htm or .html extension (9/21/2003 16:49:33)
|
As an example see this: http://www.outfront.net/spooky That takes you to a perfectly functioning page, but the page is NOT called spooky, it is called index.htm. The URL is actually http://www.outfront.net/spooky/index.htm quote:
so your telling me when I add pages to a site I'm not adding pages but directories Of course not, a page is a page. But it can be in a directory and the directory can be called anything you like. To get the effect you want all you need to do is place the file you want reached in a directory with the name you want, then rename the file index.html So, suppose the file is currently http://www.example.com/news.htm Just make a new directory called 'news', move the file to it, rename the file 'index.html' Now you can use the url http://www.example.com/news If you do this in FP it will update any existing links on or to the moved page, so that you do not have to worry about that. On a general note. It is a VERY good idea to organise your site into directories, rather than just making pages and having them all in the root directory. Generally speaking I have only 2 html pages in my root directory on any web - the index page and a contact page. After that everything is organised into directories with relevant names. So, say you had a site about vegetables. Your site would have perhaps the following pages and directories when you looked at the folder list in FP Main directory |- asparagus |- broccoli |- carrots |- images |- includes |- peas |- turnips contact.html index.html Now by calling the main file in each of the vegetable folders index.html, all the user will have to do is enter: http://www.myveggiesite.com/carrots And they will see all they need to know about carrots. Setting up your site like this is not just better for dearch engines, it makes it a hell of a lot easier to manage also.
|
|
|
|