Forum Moderators: phranque

Message Too Old, No Replies

Trailing Slash Problem

Help Please!

         

tehon3299

12:14 am on Feb 4, 2004 (gmt 0)

10+ Year Member



OK...I'm trying to get www.something.net/gallery to go to www.something.net/gallery/ because the first will not work. I've read the Apache tutorial about the rewrite rules and it says to add:

RewriteEngine on
RewriteBase /~quux/
RewriteRule ^foo$ foo/ [R]

I am running Apache on Linux so would I add:

RewriteEngine on
RewriteBase /var/www/html/
RewriteRule ^gallery$ gallery/ [R]

And where does this go?! I thought it went in my .htaccess file but it doesn't seem to work. Also, should my .htaccess file be in my /var/www/html/ directory?

Thanks!

treehugger

9:02 am on Feb 4, 2004 (gmt 0)

10+ Year Member



Try the Apache forum - you're more likely to have your message read by someone who knows the answer.