Hiding PHP

For some reason, I prefer to not have .php in my URLs.

I have a project whose startup page is a blank app with html markup. So in the dev environment, it shows me the app’s URL like http:// localhost/scriptcase/app/myapp/login. This meets my objectives since with the menu app, the other apps are in iframe so no .php is displayed.

When I deploy to hosting service though, it shows http://myurl.com/login/login.php. I’ve tried the hosting service’s suggested apache rewrites rules but they end up breaking the project.

Wondering if anyone else has had same objective and solved it.

Have you tried to use “friendly URL”? may be that helps you to solve your issue.

If I give it the name “friendly”, the URL comes out http://myurl.com/friendly/login.php.