i am currently trying to learn about clean urls. i was using windows once.
i switched to ubuntu when suddenly my .htaccess seems to be not working
here is my htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
so i have this url
i was expecting it to say the ‘my_name’ string in the browser
hello my_name
but it would only work whenever i add a ‘?’ in the uri
i am pretty sure mod_rewrite is enabled. i even checked my phpinfo()
It sounds like the rewrite module is disabled. Edit your apache configuration and load the dynamic module for
mod_rewriteif available. It would look like this:If you’re using Ubuntu, run
sudo a2enmod rewriteto enable the module following by restarting the Apache server: