Now we can clean up the urls by rewriting them without index.php. This is most easily done with an htacces file. Create or open the file /var/www/example.com/html/.htaccess and add the following:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
No comments:
Post a Comment