I'm using symfony in my local computer for programming. its address is http://localhost/RTL/web/app_dev.php/secure_area
.
How can I change this address to http://localhost/secure_area
?
I mean removing RTL/web/app_dev.php
.
I'm using xampp, apache and symfony 2.6.
other addresses could be something like these:
http://localhost/RTL/web/app_dev.php/login => http://localhost/login
http://localhost/RTL/web/app_dev.php/logout => http://localhost/logout
http://localhost/RTL/web/app_dev.php/admin => http://localhost/admin
Accordingly to the comments.
The RTL/web is removed adding the directive
DocumentRoot "C:/xampp/htdocs/localhost/RTL/web"
on your virtual host file in apache.Then you can hide app.php using these apache mod_rewrite rules:
then restart apache server to apply the modifications.