Forum Moderators: phranque

Message Too Old, No Replies

Trailing slash issue

Is this an Apache thing?

         

anallawalla

3:59 am on Apr 3, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I noticed that one of my directory scripts makes directory links from its nav bar without the trailing slash. e.g.

Cool

instead of

Cool/

I have used the script since the late 90s so it definitely worked but was surprised to find the site had lost its PR and only the home page was indexed. I had moved to a new shared web host so I am suspecting a server setting.

Is this something I can fix using .htaccess or is it a browser issue?

coopster

12:23 pm on Apr 3, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



More than likely a server setting. Apache's mod_dir [httpd.apache.org] likely has the answers you seek.

Longhaired Genius

1:03 pm on Apr 3, 2005 (gmt 0)

10+ Year Member



Surely the problem, such as it is, is with the script itself. Apache is generally set up so that if it doesn't find a file "Cool" it will look for a directory "Cool", so everything is working ok for you. If you change this setting, when it fails to find a file "Cool" it will return an error.

If it was me, being fussy, I would edit the script, but that's probably not really necessary. Many sites (like the BBC) publish URLs like "www.example.com/directory", without the trailing slash, presumably because they think it looks neater and less confusing.

I don't think any of this is connected with your PR and indexing woes.