Forum Moderators: phranque

Message Too Old, No Replies

Trailing Slash after page problem

what am I missing?

         

Duckman2000

1:59 am on Nov 7, 2003 (gmt 0)

10+ Year Member



I have a site problem that probably has a simple solution or I am overlooking something:

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]

tbear

2:20 am on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi Duckman2000 and welcome to this place........
I don't know if you should be putting a trailing slash after a file is indicated. if I'm wanting to use an index.htm(l), then i'll name the folder and put the slash ...... But not if I name a file. All works well, but I don't know why¿

Duckman2000

2:28 am on Nov 7, 2003 (gmt 0)

10+ Year Member



Hi tbear and thanks for the reply....

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...
?