.htaccess file does not exist on main directory of your site. You can find this file in the main directory of script files. You need to upload this file to your site.
Depending on the operating system you are using, such setting files may be hidden in your computer. In this case, you may not see this file.

If you can't see this file, you can create a new file named ".htaccess" in the main directory of your site and you can paste the following codes to your .htaccess file.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]