Random routes appear after base URL

I have a project in Symfony 4. Normally everythink works fine, but sometimes when I go to the base URL (ex: https://WEBSITEURL.com ) it automatically goes to https://WEBSITEURL.com/favicon.ico , and every internal link points to https://WEBSITEURL.com/favicon.ico/LINK , which produces 404 error. Other times, instead of favicon.ico, I get other strings like robots.txt. I have no idea why this random strings get appendend to the base URL, even because my public folder does not contain a robots.txt file, and favicon.ico is just contained in a subdirectory with many other files.
Same thing happens both locally and on server online.
Some help please?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *