View Full Version : Creating folders for a website
pmontesi
10-12-2006, 08:06 PM
Hi,
I'm pretty new to this, and I could not find my question answered anywhere. Anyways, I would like to make a page so that I get rid of the .html at the end of it. For example, when somebody is told to go to a certain part of a site, they should type out www.website.com/about instead of www.website.com/about.html.
I did make a folder similar to this style, and it worked. But, when I tried to click on the links on that page, they went nowhere.
Can anyone please tell me how to go about this properly?
Thanks.
VIPStephan
10-12-2006, 08:12 PM
If you create folders for each page you have to name the files in there "index.html" because if you like like this:
<a href="/about">link</a>
The browser will look for a file called index.htm[/.php/.aspx/.cfm] and won't find your file if it is named about.html (or whatever extension).
However, I think there is an easier way to achieve this with mod rewrite but I'm not very proficient with this.
Level5
10-12-2006, 08:13 PM
yeah you can do that by putting a edited about page as index.html in your about folder. :)
as html or php or anything.. just make sure it named as index :)
so set a link as
/about/
/contact/
/anyfoldername/
it will read as
/about/index.html
/contact/index.html
/anyfoldername/index.html
your visitor will goes like this
www.yourdomain.com/about/
www.yourdomain.com/contact/
www.yourdomain.com/anyfoldername/
Cheers!
-----------------------------
Nick
pmontesi
10-12-2006, 08:55 PM
Thanks guys! You were a help. Well, I won't make every page like that. I'm actually doing this for a mortgage company. I just wanted to do this for the personal loan officer pages. It wasn't supposed to be like this, but they all made their business cards with their personal pages and they did not include the extension in their links. So, I had to make up for their error.
As far as the links to the rest of the website on their personal pages, I just made it so they point back to the original website, ala...
<a href="http://website.com/about.html">link</a>
Thanks guys!:thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.