install.php
changeset 85 7c68a18a27be
parent 82 03c7f5ec1e4c
child 91 8079b0288e8e
equal deleted inserted replaced
84:f99fb84bd959 85:7c68a18a27be
  1117         if(!$ht) err('Error opening file .htaccess for writing');
  1117         if(!$ht) err('Error opening file .htaccess for writing');
  1118         fwrite($ht, '
  1118         fwrite($ht, '
  1119 RewriteEngine on
  1119 RewriteEngine on
  1120 RewriteCond %{REQUEST_FILENAME} !-d
  1120 RewriteCond %{REQUEST_FILENAME} !-d
  1121 RewriteCond %{REQUEST_FILENAME} !-f
  1121 RewriteCond %{REQUEST_FILENAME} !-f
  1122 RewriteRule ^(.+) '.scriptPath.'/index.php/$1 [L,QSA]
  1122 RewriteRule ^(.+) '.scriptPath.'/index.php?title=$1 [L,QSA]
  1123 RewriteRule \.(php|html|gif|jpg|png|css|js)$ - [L]
  1123 RewriteRule \.(php|html|gif|jpg|png|css|js)$ - [L]
  1124 ');
  1124 ');
  1125         fclose($ht);
  1125         fclose($ht);
  1126       }
  1126       }
  1127   
  1127