LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache website question (https://www.linuxquestions.org/questions/linux-newbie-8/apache-website-question-52200/)

vadertech 03-28-2003 12:09 PM

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.

david_ross 03-28-2003 12:31 PM

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).

bahamat 03-28-2003 01:57 PM

Use a single frame frameset.

trickykid 03-28-2003 02:08 PM

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.

david_ross 03-28-2003 02:12 PM

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.

vadertech 03-28-2003 03:58 PM

cool thanks everyone. Looks like it's more trouble than its worth and going to frames for every page would be a nightmare.

david_ross 03-28-2003 04:02 PM

Trust me - DirectoryIndex is easy:
http://www.twsc.biz/htaccess.php


All times are GMT -5. The time now is 05:05 PM.