.htaccess - Symfony - app.php required in URL -
I have recently deployed a Symphony project and have seen that the way I am currently using this project is using the following URL:
p>
I was thinking that Something like this: If there is a way to automatically get the sure It is not necessary that This is how your htaccess looks at present: . I appreciate any advice, thanks in advance! This (effectively) I have the following Good luck! http://domain.com/app.php/index
app.php
http://domain.com/index
htaccess is required for this or if it is something that can be accomplished directly using Symfony
DirectoryIndex app.php & lt; IfModule mod_rewrite.c & gt; RewriteBase / RewriteCond at RewriteEngine% {REQUEST_FILENAME} -f RewriteRule ^ (*.) $ /app.php/ [QSA, L] and lt; / IfModule & gt;
.htaccess And sites using the Simplon 2:
& lt; Ifmodule mod_rewrite.c & gt; ! (. *) RewriteCond% {REQUEST_FILENAME} RewriteEngine ON-F RewriteRule ^ $ app.php [QSA, L] & lt; / IfModule & gt;
vhost entry for one of my Symphony projects under the Apache server:
DirectoryIndex AP.FP Index error may be sufficient in the
.htaccess file, so that you can try that it is valid that Apache My knowledge of configuration is weak as much as I would like, hope it helps, if not - is hope that someone can give you better, stronger answers?
Comments
Post a Comment