** Changed in: aikiframework
     Assignee: (unassigned) => Steven Garcia (fosdevel)

** Changed in: aikiframework
   Importance: Undecided => Critical

** Changed in: aikiframework
    Milestone: None => 0.7

-- 
Why is the .htaccess file generated?
https://bugs.launchpad.net/bugs/602495
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.

Status in Aiki Framework: New

Bug description:
In system/libraries/installer.php the htaccess file is generated, but this 
makes no sense because it has no variables. The file should exist in the 
filesystem already and not be generated by PHP. 

To do this, create the .htaccess file, run "bzr add .htaccess" and then delete 
these lines: 

        $htaccess_file = 'Options +FollowSymLinks
RewriteEngine on
RewriteBase '.$_SERVER["REQUEST_URI"].'
RewriteRule ^image/(.*)px/(.*)/(.*) 
assets/apps/image_viewer.php?id=$3&size=$1&mode=$2
RewriteRule ^image/(.*)px/(.*) assets/apps/image_viewer.php?id=$2&size=$1
RewriteRule ^image/(.*) assets/apps/image_viewer.php?id=$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?pretty=$1 [L,QSA]';

        $htaccess_file_name = ".htaccess";
        $FileHandle = fopen($htaccess_file_name, 'w') or die("Sorry, no 
permissions to create .htaccess file");
        fwrite($FileHandle, $htaccess_file);
        fclose($FileHandle);



_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to     : aikiframework.admins@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help   : https://help.launchpad.net/ListHelp

Reply via email to