I have installed a clean Apache2 (plus PHP & MySQL) server and enabled the mod_rewrite
in the apache config.
I added the .htaccess
file to remove the index.php from the url as described in the CodeIgniter wiki.
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
I placed this file in the website's root.
When I try to access the url mydomain.local/index.php/welcome
then I get the default page of CodeIgniter. But when I try to access the same page through mydomain.local/welcome
then I get the 404 page.
How can I check if the whole rewrite rule is working? And why isn't it working?