Forum Moderators: phranque

Message Too Old, No Replies

404 Errors From A Trailing Slash (/)

         

austtr

1:22 am on Apr 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A server error log is showing a lot of 404's due to the / character being added to the end of certain URL's…. not all, just a few.

eg.. a page called widgets.htm is showing as widgets.htm/

The referrer is my own site so I looked for possible typo's in the html code, but that's not the case.

It's easy enough to add 301 redirects to the .htaccess to make sure the proper page is loaded, but I'm puzzled as to what is happening.

Can anyone explain this?

lucy24

2:12 am on Apr 22, 2014 (gmt 0)

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



Who's requesting the URLs? Major search engine, human, robot? Are they really from your own site, or are they just saying that?

As an alternative you could change the site's PathInfo settings. But don't do this if you're getting legitimate requests-- whether human or search engine-- for incorrect URLs.

Don't just look at your original html. Look at the actual, online page that's sending the bad referer-- assuming it really exists-- and make sure the link doesn't say anything it isn't supposed to.