RewriteRule in Apache with Symfony2 not removing app.php

前端 未结 7 1996
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 15:34

I have the following .htaccess file in my web directory for my Symfony2 installation:


    RewriteEngine On
    RewriteCond %{R         


        
相关标签:
7条回答
  • 2020-12-13 16:34

    You must enable the rewrite module in Apache, as the "IfModule mod_rewrite.c" states.

    To do so:

    1. Run command-line command "a2enmod rewrite".
    2. Change all "AllowOverride None" lines to "AllowOverride All".

    See http://www.lavluda.com/2007/07/15/how-to-enable-mod_rewrite-in-apache22-debian/.

    0 讨论(0)
提交回复
热议问题