I am trying to hide the app.php from url
I have:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
Which works okay.. but when user visit
domain.com/app.php/Home/
than the url is still
domain.com/app.php/Home/
and i want have only
domain.com/Home
How to solve it?
I tried:
#RewriteCond %{THE_REQUEST} ^.*/app.php
#RewriteRule ^(.*)app.php/(.*)?$ /$2 [R=301,L]
Which work as i need but when i do some action dynamic jquery ajax action i get error 405.