3

I've implemented a code level redirect when someone hits the wrong TLD. i.e. store1.example.com -> store1.example.ca

I do a db query based on the subdomain hit to see which country that store is registered too and redirect to the correct TLD.

Chrome says "The site you tried to visit looks fake. Attackers sometimes mimic sites by making small, hard-to-see changes to the URL"

Anyone dealt with this before?

Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
Mohamed Ali
  • 53
  • 1
  • 6
  • Use server-side redirecting instead. –  Nov 15 '21 at 18:48
  • @ChrisG Ideally that's exactly what I'd do but the infra is in a state where I have to do the redirect at the code level – Mohamed Ali Nov 15 '21 at 18:52
  • 1
    I voted to close this question because it is not a programming question and it is off-topic on Stack Overflow. Non-programming questions about your website should be asked on [webmasters.se]. Please delete your question here and re-ask it there. – Stephen Ostermiller Nov 15 '21 at 20:17

0 Answers0