search

Home  >  Q&A  >  body text

Why does my site automatically redirect to a different URL when accessing a file that doesn't exist, even without any .htaccess redirects?

<p>I've been working on this for a few days...</p> <p>When I visit a URL for a .jpg that doesn't exist, my site redirects me to a closed file (apparently there's a 1 character difference). For example: if 12345.jpg exists but 1234.jpg does not, 1234.jpg will redirect to 12345.jpg. </p> <p>This website is not hosted on Wordpress or other similar platform. I took existing code and developed it. I can access all files and directories through Filezilla. I searched for .htaccess but none have a redirect line. I also tried removing .htaccess but same problem. </p> <p>I was wondering, if we can't find the source of the problem, maybe some of you know how to write some code that locally prevents any redirects from happening? </p> <p>Thank you very much for your help! </p>
P粉198670603P粉198670603451 days ago508

reply all(1)I'll reply

  • P粉166675898
  • Cancelreply