how to enable Mod Rewrite

Discussion in 'Installation/Configuration' started by AngelDrago, Jul 17, 2007.

  1. AngelDrago

    AngelDrago Member

    How do i enable Mod Rewrite in ISPconfig with Debian Etch...
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Just run
    Code:
    a2enmod rewrite
    /etc/init.d/apache2 restart
     
  3. AngelDrago

    AngelDrago Member

    Thank you Falko... but for some reason my user friendly page will not show up as soon as i include .htaccess to the web sites
     
  4. bigger_travis

    bigger_travis New Member

  5. falko

    falko Super Moderator ISPConfig Developer

    Any errors in Apache's error log?
     
  6. AngelDrago

    AngelDrago Member

    Hallo Falko,

    here is the log...
    [Thu Aug 02 20:40:09 2007] [alert] [client ]68.1.111.119 /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:09 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:10 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:10 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:11 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:12 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:12 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:14 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:14 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:15 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here
    [Thu Aug 02 20:40:15 2007] [alert] [client 68.1.111.119] /var/www/web1/web/.htaccess: Options not allowed here

    and here is my htaccess file Options All -Indexes
    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*) index.php

    this should work but i do not understand why i'm getting 500 errors

    Thank you for your help
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Remove
    Code:
    Options +FollowSymLinks
    from your .htaccess file and then add something like
    Code:
    <Directory /var/www/web1/web>
      Options +FollowSymLinks
    </Directory>
    to the Apache Directives field of web1 in ISPConfig.
     
  8. AngelDrago

    AngelDrago Member

    Hi Falko, Thank you... but it did't worked what is a good test to see if htaccess actually workes???....

    maybe one of you hat the same problem i have purchased SubDreamer and istalled just fine but as soon as i turn on Friendly URLs but with out the htaccess i'm getting only 404 page error's...
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Any errors in Apache's error log?
    What's in your .htaccess file now?
     
  10. AngelDrago

    AngelDrago Member

    Hi Falko i know that mod_rewrite is working just fine i found a great script that shows if you have mod_rewrite on or off i really thing it's the way that htaccess workes and it makes me sick that i can not use one of the good future of the script that i'm using but that is o.k i guess... anyway Falko thank you very much for your help on this i really appriciated.
     

Share This Page