2

My 404 log shows many URLs ending with /& or /m& instead of the file extension.

They are getting error 404s, but what is that supposed to do? How do the URLs get changed to that?

1 Answer 1

1

My 404 log...

You probably mean the error log. In an apache server, errors are recorded in the error_log file.

... shows many URLs ending with /& or /m& instead of the file extension. They are getting Error 404s but what is that supposed to do?

It means that either a guest or a robot is requesting a URL from your website that ends in /& or /m&. Because you do not have a method to handle that request (such as using mod_rewrite module in apache to redirect the request to a valid resource), the server would assume that one would want a file named & or m& and because neither is found on your server, the guest or robot will receive a 404 error page and the guest's browser would receive an HTTP 404 status which means the resource (be it file, folder, or document) is not found.

How do the URLs get changed to that?

If your server changes them, its because a module is loaded (such as mod_rewrite for apache) that takes the original URL and converts it over to the new URL then processes it. To verify this, you may want to check all your configuration files related to your server to see what modules are actually loaded and turn extended logging on in the server itself to see the details. I'd strongly recommend turning the logging back to default after you're done so your server won't be always slow due to extensive logging.

1
  • "In an apache server, errors are recorded in the error_log file." - 404 "errors" are normally only logged in the access log, not the error log. A 404 HTTP response is not strictly a server error.
    – MrWhite
    Commented Jan 17, 2018 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.