mod_rewrite will allow you to to accomplish this.
http://domain/dir == http://domain/dir/

mod_rewrite can also do
http://domain/file == http://domain/file.ext

There are docs on http://www.apache.org for mod_rewrite.



Mark Courtney

http://www.MarkCourtney.com

     __
   +|oo|+
   +|oo|+
     ||
     ||
     ||
     ||
     ||
     ||
  _  ||  _
  \\_||_//
   | [] |
   | || |
  /  []  \
  \______/

> This is what I have in my apache httpd.conf
> <IfModule mod_userdir.c>
> #UserDir public_html
> UserDir /home/*/web
> </IfModule>
>
> putting a slash after UserDir public_html/
>              or              UserDir /home/*/web/
> does not seem to be doing anything.
> Also the machines hostname is setup, I was having other problems untill
I set it.
> I also have the server name set as serverName *:80 which seems to be
working
> fine.
> I can't think of anything else that I could use to make the need for /
go away.
> Andrew Nemchenko
>
>
>
> ----- Original Message -----
> From: "Andrei Bazhgin" <after at nan2d.com>
> To: <tclug-list at mn-linux.org>
> Sent: Thursday, March 18, 2004 2:26 PM
> Subject: Re: [TCLUG] Apache help
>
>
>> Strange. What Apache version are you working with?
>>
>> THis is what my mod_userdir.c setup looks like (Apache 1.3.29/Unix):
>>
>> <IfModule mod_userdir.c>
>> UserDir pub
>> </IfModule>
>>
>> <Directory /home/*/pub>
>> AllowOverride All
>> Options Indexes FollowSymLinks
>> </Directory>
>>
>> An Apache2 config will look different.
>>
>> On Thu, Mar 18, 2004 at 11:38:42AM -0600, Andrew Nemchenko wrote:
>> > I dont think that this a very compilcated question but I just can't
>> seem
> to be able to figure this out.
>> > What do I have to do in the httpd.conf file to have the server forward
> to my user directories with out a trailing "/"
>> > For example when I enter
>> >
>> > http://ipaddresshere/~drew I get a "This page cannot be displayed"
>> >
>> > however when I enter
>> >
>> > http://ipaddresshere/~drew/  <--notice the trailing /
>> >
>> > it goes to the user directory and brings up the appropriate website.
>> >
>> > To recap, my question is; How do I make it so that I don't have to put
> the trailing / after the user name?
>> >
>> > Thanks
>> >
>> > Andrew Nemchenko
>> > http://www.qlogic.com
>> >
>> >




_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list