LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2003, 12:09 PM   #1
vadertech
Member
 
Registered: Nov 2002
Posts: 67

Rep: Reputation: 15
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.
 
Old 03-28-2003, 12:31 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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).
 
Old 03-28-2003, 01:57 PM   #3
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
Use a single frame frameset.
 
Old 03-28-2003, 02:08 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 03-28-2003, 02:12 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 03-28-2003, 03:58 PM   #6
vadertech
Member
 
Registered: Nov 2002
Posts: 67

Original Poster
Rep: Reputation: 15
cool thanks everyone. Looks like it's more trouble than its worth and going to frames for every page would be a nightmare.
 
Old 03-28-2003, 04:02 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Website publishing in Apache j_kamal Linux - Newbie 3 11-11-2005 01:19 AM
Apache - Website Redirection Help cbarone2005 Linux - Software 2 09-29-2005 02:45 PM
Website testing with Apache BinaryLinux Linux - Software 5 08-19-2004 05:45 PM
Apache (website building) question WorldBuilder Linux - Software 2 09-15-2003 09:38 PM
Can't View Website Through Windows (Apache 2.0, RH 9.0) TastyWheat Linux - Networking 5 08-22-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration