I've read tons of other answers about this case but nothing helped. I have this website http://allutas.com with the following folder structure
Allutas
Application
Controllers
index.php
Models
Views
System
index.php
when you visit http://allutas.com the index page performs some checks and if everything is right it sends the user to Application/Controllers/index.php
and all the other pages that the user can visit are located in that Controllers folder too
so simply what I'm trying to do is to remove or hide the subdirectories part in my website from all the files in the controller folder along with the .php extension so instead of
http://allutas.com/Application/Controllers/index.php or http://allutas.com/Application/Controllers/about.php
I want it to be like that
http://allutas.com/index or http://allutas.com/about
I've tried a lot of other answers and they ended up doing nothing or cause a 500 internal server error
here's an example of an htaccess file that is gonna give a 500 internal server error
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ application/controllers/$1 [L]
</IfModule>
If it helps, my host is using Apache version 2.4.3-25 and PHP version 5.6.27