Forum Moderators: phranque

Message Too Old, No Replies

Pages with incorrect slashes at the end display wrong

Is this a configuration thing?

         

Duckman2000

3:44 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



I have a website problem that probably has a simple solution...what am I overlooking? I know pages don't have trailing slashes as directories do, but I am getting hits to pages with trailing slashes in the address):

This sample page format works correctly:
sitename.com/testpage.html

However if a trailing slash is entered after testpage.html like this:

sitename.com/testpage.html/

then the page displays text but all graphic images show broken links. And it does this for all .html pages on the site if I put a trailing slash after the .html

ALSO, if any text is entered after the trailing slash, the same page with broken links appears. ( example: sitename.com/testpage.html/ whatevertext )

How do I get sitename.com/testpage.html/ as well as other pages with errant trailing slashes) to go to the correct page(s) without the trailing slash (or to go to a page not found error page - as setup in my .htaccess file)?

Is this an apache or unix feature? The site is hosted by Verio with a UNIX server...

I am concerned about this because I noticed in my web logs that I am getting hits to pages that have the trailing slash (and the visitiors to those pages get text and a bunch of red x's instead of graphics, buttons, etc)

Thanks for any help!

jdMorgan

3:53 pm on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Duckman,

I'd guess that one of these is true:

  • httpd.conf is messed up
  • .htaccess is messed up
  • a server-side script you're using is messed up

    You ought to be getting 404's on the 'odd' URLs.
    Verified on a Verio/Apache account.

    Jim

  •