.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>

http://domain.com/app.php/index

I was thinking that

Something like this:

If there is a way to automatically get the app.php

http://domain.com/index

sure It is not necessary that htaccess is required for this or if it is something that can be accomplished directly using Symfony

This is how your htaccess looks at present: .

  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;   

I appreciate any advice, thanks in advance!

This (effectively) .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;

I have the following 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?

Good luck!

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -