Default mod_rewrite?

  • Hello,


    I switched my server from Debian 6 to Debian 7.2
    Before switchting I had imscp 1.0.3.0 ;)
    Now I have the latest installed version: 1.1.0 RC4.7


    I had the problem, that my old .htaccess isn't working anymore.
    Content:

    Code
    1. RewriteEngine on
    2. RewriteRule ^([a-z]+)$ /$1.php


    Function Description: "add .php", so: make a redirect for myurl.com/home to myurl.com/home.php


    I was wondering, if I create an .html (maybe test123.html) and open the site: myurl.com/test123 that the html file is be reachable? (width no .htaccess mod_rewrite rules!)


    Are there any global rewriterules from imscp?


    I found out, If i create test123.html, test123.xhtml, test123.txt it will be going first to test123.html (if not existing), then it shows test123.xhtml (if this not existing) then it shows test123.txt


    But it don't work for php files.


    Please help me, I'm searching 3 hours for a solution


    thanks


  • I think you have to switch the AllowOverride to All or something like that inside the default apache2 config at /etc/apache2/sites-available/default