Checkout how status.net does it by just placing a sample in the
working directory:

http://gitorious.org/statusnet/mainline/blobs/master/htaccess.sample

Then says, hey, rename and change the variables.

Other ways to accomplish?

On Tue, Jul 6, 2010 at 6:20 PM, Bassel Safadi <b...@ssel.me> wrote:
> there is a variable:
> RewriteBase '.$_SERVER["REQUEST_URI"].'
> anyway I agree that it should be done differently
>
> --
> Why is the .htaccess file generated?
> https://bugs.launchpad.net/bugs/602495
> You received this bug notification because you are subscribed to
> aikiframework.
>


-- 
Jon Phillips
http://rejon.org/
http://fabricatorz.com/
http://status.net/
http://rejon.status.net + skype: kidproto
+1.415.830.3884 (sf/global)
+86.187.1003.9974 (china)

-- 
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 the registrant for 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