enable rewrite module htaccess code example
Example 1: apache enable mod reqrite
sudo a2enmod rewrite
sudo service apache2 restart
Example 2: htaccess rewrite rule
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>