skip to Main Content

I have CodeIgniter running on an Apache server on AWS. For verification, I need to place a text file in my website’s root directory. It should be:

mywebsite.com/verification.txt

I’ve tried adding a view and controller, but as everything expects PHP files, this predicatively failed me, resulting in a 404 error. Any advice would be greatly appreciated.

2

Answers


  1. You can give the file permission, In case anyone from the outside world gets access to your system they can do anything with these files. Including deleting them.

    sudo chmod -R 777 verification.txt
    
    Login or Signup to reply.
  2. Did you tried to upload the verification.txt file to your www root folder where is placed the main index.php file ? This should work as simply as a robots.txt file works.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search