Forum Moderators: phranque
This sample 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
How do I get sitename.com/testpage.html/ as well as other pages with errant trailing slashes) to go to a page not found error page (as setup in my .htaccess file) --or-- load the correct page that sitename.com/testpage.html does?
Is this an apache or unix feature? The site is hosted by Verio with a UNIX server...
Thanks for any help!
[edited by: Duckman2000 at 2:20 am (utc) on Nov. 7, 2003]
I agree and I don't put a trailing slash after a page name. The reason I am concerned about this is I noticed in my website logs I am getting hits with the testpage.html/ (page + trailing slash) instead of the testpage.html (no trailing slash). So those visitors are getting the text on the page but no graphic images/buttons/etc. There are text links to click on but I am sure a bunch of red "x"s is not very appealing :)
So, I suspect one or more search engines (or another page or pages which has linked to mine) has this testpage.html/ (with trailing slash) as the link address.
I have noticed other sites on the web that react as mine does (the trailing slash for page names causes problems) where other sites on the net work correctly with or without the trailing slash for page names (they display the page correctly irregardless of the trailing slash).
Makes me think it is some sort of configuration thing...
Also, this is another good reason why it pays to check those website logs and stats pages...
?