why .htaccess not working?

hi there

by getting help from this link i put .htaccess file in to public_html folder by this content:

Options +FollowSymLinks

IndexIgnore */*


RewriteEngine on


# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d


# otherwise forward it to index.php

RewriteRule . index.php

this codes say if I use a URL that does not match with files and folders in public_html folder, the application will redirect me to the index.php file, but actually it does not work

thanks in advanced

This htaccess has to be placed in "web" folder where is located the index.php

Don’t forget to activate on Apache “rewrite_module”