.htaccess + mod_rewrite

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

  1. tomaszm

    tomaszm New Member

    Hello!

    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 Howtoforge Staff

  3. commentator

    commentator Member

    Same problem here with mod_rewrite.

    Server with Debian Squeeze/Sid and ISPConfig 3.0.3.3


    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 :

    Code:
    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