Click to See Complete Forum and Search --> : trailing slash
mviverette
12-05-2002, 11:17 PM
my web directories wont resolve unless i put that trailing slash in. for example... www.mydomain.com/folder wont come up, but www.mydomain.com/folder/ will work. apparently there's some module thats supposed to add the trailing slash automatically but its either not working or not installed. i just set up red hat 8 as a web server my default installation. why doesn't this work and how can i fix it?
thanks for any help,
peace,
matt
JohnT
12-05-2002, 11:39 PM
Mid-page.........
http://linuxselfhelp.com/apache/manual/misc/rewriteguide.html
Also........
http://linuxselfhelp.com/apache/manual/mod/mod_dir.html
mviverette
12-06-2002, 03:55 PM
what do i do to configure the mod_rewrite? is there a file to edit, a command to run? i am a true newbie, please spell it out for me... i did find the text that is relevant:
RewriteEngine on
RewriteBase /~quux/
RewriteRule ^foo$ foo/ [R]
Thanks.
JohnT
12-06-2002, 05:31 PM
This are the Apache doc's on mod-rewrite.........
http://linuxselfhelp.com/apache/manual/mod/mod_rewrite.html
mviverette
12-06-2002, 09:10 PM
yeah i read that but i still dont understand how to change things... do i edit a file, do i need to recompile something... HOW do i do it? literally.
thanks
JohnT
12-06-2002, 11:45 PM
Your going to have to edit some files. I personally cannot advise you any further than the documents I gave you. Your going to have to decide which ones, according to your particular set-up or keep this thread bumped up where someone else can help. Sorry.
Originally posted by mviverette
my web directories wont resolve unless i put that trailing slash in. for example... www.mydomain.com/folder wont come up, but www.mydomain.com/folder/ will work. apparently there's some module thats supposed to add the trailing slash automatically but its either not working or not installed. i just set up red hat 8 as a web server my default installation. why doesn't this work and how can i fix it?
as the wise one John T said the anwer is in the Apache manual, mod_dir page.
Please note that the manuals are different for Apache1.3.** and Apache2.0.** versions.
Further, kindly provide relevant details when you have a question. For instance you don't say if you installed Apache(version??) from source or did it come with RedHat(version??) install.
I'm running RH8 and installed Apache2.0.43 from source to /usr/local/apache2/. To know all the installed modules for Apache, I go to that directory and type ./apachectl -l (thats a hyphen and a small l).
Unfortunately RH does not exactly follow the Linux FHS (http://www.pathname.com/fhs/), so you can type whereis apache or maybe whereis httpd or something along those lines to find out where Apache is installed.
HTH & regards
theN
ps: there are excellent Apache tutorials for beginners on Devshed (http://www.devshed.com/Server_Side/Administration). You take a look at them for some basics, but they don't beat the manuals.