-1

When you enter example.com/robots.txt, my opencart website giving me 404 error like

Error

It should work like https://www.daraz.pk/robots.txt Please help.

Zeshan
  • 67
  • 6

1 Answers1

0

It was permission issue and my file permission was o770, when I change this this 777 and it works for me.

Zeshan
  • 67
  • 6
  • You should never use 777 permissions as it leaves your files open to modification your scripts are vulnerable. Instead, the contents only need to readable by the web server user, so 755 if it's a directory or 644 if it's a file. – jedifans Aug 25 '16 at 19:51