View Full Version : site-url renaming
LucidNet
Jun 15th 2004, 3:04 am
I noticed when i was going through DMOZ, that when you click on the categories it goes to www.example.com/example and not www.example.com/example/example.htm
it only shows the directory and not the actual file, is there anything i can change to do this to a site? I have no idea where to start.
Cheers
Andy
SEbasic
Jun 15th 2004, 5:14 am
set up the folder within your site directory... for instance...
http://www.example.com/example
so in your site root you need to set up a folder called example...
in that folder place an index.html or.cfm or .php or whatever...
When you link to that folder (<a href="example">link text</a>) it will automatically go to the index file by default (you could also use default instead of index)
Just like the main index (or default) file for your site...
LucidNet
Jun 15th 2004, 5:26 am
ok cheers, i thought about doing that... but for some reason thought there would be a better way...... thanks for confirming it. Im off to go make my changes now :)
TechEvangelist
Jun 15th 2004, 6:35 am
The default file for your directories is configured on your server. This can be set it up for any file name you want to use. Apache uses index.htm, index.html and index.shtml as the defaults. If Apache is configured with PHP, index.php is added. Microsoft likes to be different, so they add the default.* variations to IIS servers.
Craig
venam
Jan 15th 2008, 1:23 am
you can change that with a code on .htaccess!
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.