I used this code in my .htaccess for the entire time:
Options -Indexes
ErrorDocument 404 /404error.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
It worked fine and I could use the filenames in the url without the extension. But out of nowhere the code stopped working and the same url (/index) brought me to, instead of the /index.php to the /index.css. (This effects only me local apache - The online server works still fine) Why did it stopped working and how can I fix it?
Thanks in advance - Jojo