.htaccess + mod_rewrite

Discussion in 'General' started by tomaszm, May 27, 2011.

  1. tomaszm

    tomaszm New Member


    I've problem with ispconfig3 and mod_rewrite and .htaccess files.
    When I create .htaccess file and I put there:
    Options +Indexes
    It dosen't work.
    Also mod_rewrite dosen't work.
  2. falko

    falko Super Moderator ISPConfig Developer

  3. commentator

    commentator Member

    Same problem here with mod_rewrite.

    Server with Debian Squeeze/Sid and ISPConfig

    Problem is php fastcgi. Set it to mod-php and it works as it should be.

    @falco / @till is there a fix for this so it can work with fastcgi?
  4. commentator

    commentator Member

    Update :

    RewriteEngine on
    RewriteRule ^index.php / [R=301,L]
    RewriteRule  ^[a-z0-9]+\.[a-z0-9]+$ - [NC,L]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^([a-z_0-9/\.-]+)$ test.php/$1 [NC,QSA,L]
    works perfect with mod-php but not with fast-cgi. Why ?

Share This Page