lkeane
03-04-2005, 06:39 AM
Hi. Sorry to be asking such a newbie question but I am getting stuck.
I want to make my site use directories for file names.
I would like http://example.com/directory/ to load http://example.com/directory/filename.html but I do not want the name of the file to be displayed in the address bar.
I am trying to mimic an effect I noticed: http://www.happycog.com/about/ shows a .htm file but when you press 'reload' it does not show the filename.
I know this is extremely common but everyone I've asked has given a different response. I hope this is in the correct category; I don't know where it should go. Some have suggested using mod_rewrite, mod_dir, .htaccess, or some redirect. I think the easiest for me would be .htaccess because I have no experiance with any of the other apache things. Basically, I know what I want to do but I have no idea where to start and I don't know what the .htaccess code would be.
Thanks very much for any help! I appreciate any push in the right direction.
I want to make my site use directories for file names.
I would like http://example.com/directory/ to load http://example.com/directory/filename.html but I do not want the name of the file to be displayed in the address bar.
I am trying to mimic an effect I noticed: http://www.happycog.com/about/ shows a .htm file but when you press 'reload' it does not show the filename.
I know this is extremely common but everyone I've asked has given a different response. I hope this is in the correct category; I don't know where it should go. Some have suggested using mod_rewrite, mod_dir, .htaccess, or some redirect. I think the easiest for me would be .htaccess because I have no experiance with any of the other apache things. Basically, I know what I want to do but I have no idea where to start and I don't know what the .htaccess code would be.
Thanks very much for any help! I appreciate any push in the right direction.