T
T
Turar Abu2014-11-25 11:14:55
JavaScript
Turar Abu, 2014-11-25 11:14:55

How to remove 404 error in console?

Hello dear forum users. I had this problem:
I removed the img folder in my site directory, then through the htaccess file I indicated that in this case it would load the img.php file:
errorDocument 404 /img.php
This file reads the url and pulls out the image that is needed from the mySQL database.
When I specify an image through the tag, everything is displayed correctly. But in the developer console, it shows a 404 error and that the "given" image was not found. But it shows up. What can you advise to remove the error from the console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2014-11-25
@kemply

Well, that's right - you have a 404 error redirected, so it is displayed. do you want a different title? try to specify it explicitly in your php script or use rewritemod in htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question