apache website question
on my website i want to set each page to not show the file name in the URL.
Make this... http://www.whatever.com/file.php http://www.whatever.com/directory/file.php Look like this... http://www.whatever.com/ http://ww.whatever.com/directory/ If you dont understand what i mean, check out cnn.com for an example. |
cnn does display page names on some occasions.
I think what you want to do is look at the DirectoyIndex directive in httpd.conf (or in an .htaccess file). |
Use a single frame frameset.
|
Most of the time an index type file will not have to specified in the URL to display as well.. Sometimes when you just see something like http://www.whatever.com/directory/
Its just defaulting to the index file in the /directory your viewing at. But yeah, easiest way around this would be to setup frames or use frames with your pages.. like mentioned above. |
I fail to see how that is easier - you would need a frame in each directory. If you have common page names like latest.php or myindex.php in each directory it is easier to make a one time change to the DirectoryIndex directive. Even creating an htacess file in each directoy is easier than creating a frameset.
|
cool thanks everyone. Looks like it's more trouble than its worth and going to frames for every page would be a nightmare.
|
Trust me - DirectoryIndex is easy:
http://www.twsc.biz/htaccess.php |
All times are GMT -5. The time now is 06:18 PM. |