1

I used symfony 2 and already have created my application. I renamed my app.php to trainingboard.php. Now localhost route for index action now is: http://localhost/trainingboard/web/trainingboard.php/. How can I delete trainingboard.php from my link?

0

1 Answer 1

3

In your web/.htaccess file change:

RewriteRule ^(.*)$ app.php [QSA,L]

to

RewriteRule ^(.*)$ trainingboard.php [QSA,L]
Sign up to request clarification or add additional context in comments.

2 Comments

After that I crossed to http://localhost/trainingboard/web/ but I had to chose trainingboard.php. I want to delete it from link, so my index page will be http://localhost/trainingboard/web/ or http://localhost/trainingboard/ for example.
Take a look at your Apache Virtual Host configuration. If there is a DirectoryIndex set, change it from app.php to trainingboard.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.