Changeset 22

Show
Ignore:
Timestamp:
2007-11-23 15:00:23 (4 years ago)
Author:
hannes
Message:

tweaking .htaccess so that it allows calling install.php even if Rewrite Engine? is on (ticket #12)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/classes/pages/Settings.php

    r20 r22  
    9595                        if ($file = @fopen('../.htaccess', 'w')) { 
    9696                            // write settings 
    97                             fwrite($file, "RewriteEngine " . $_rewrite . "\n\nRewriteBase " . $newwebpath . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n"); 
     97                            fwrite($file, "RewriteEngine " . $_rewrite . "\n\nRewriteBase " . $newwebpath . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^install\.php$ install.php [L]\nRewriteRule ^([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n"); 
    9898                            @fclose($file); 
    9999                        } 
  • trunk/install.php

    r19 r22  
    103103                // create .htaccess 
    104104                if ($handle = @fopen('.htaccess', 'w')) { 
    105                     if (@fwrite($handle, "RewriteEngine On\n\nRewriteBase " . $SETUPDATA['webpath'] . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n")) { 
     105                    if (@fwrite($handle, "RewriteEngine On\n\nRewriteBase " . $SETUPDATA['webpath'] . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^install\.php$ install.php [L]\nRewriteRule ^([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n")) { 
    106106                        // set chmod 
    107107                        @chmod('.htaccess', 0660);