So I struggled a bit with Apache's mod_rewrite, but finally managed to configure(yes) and understand it(maybe?).
When the user goes to /index they are showed the /index.php page and the browser's url is http://example.com/index.
The user can also go to /index.php and the browser's url is http://example.com/index.php.
RewriteEngine On
RewriteBase /
RewriteRule ^index$ /index.php
RewriteRule ^$ /index.php
So my question is, how do I redirect a user from /index.php to only /index using only the server's configuration?