Archive for July, 2008


atBegin sample

1 <?LassoScript
2 //[
3 define_atbegin: {
4 if: response_filepath -> (endswith: '.lasso') ||
5 response_filepath -> (endswith: '.lassoapp') ||
6 response_filepath -> (endswith: '.inc') ||
7 response_filepath -> (endswith: '.las');
8 // dont do anything for normal .lasso and .lassoapp requests
9 else;
10 $__HTML_REPLY__ = (Include:'/app/controllers/');
11 abort;
12 /if;
13 };
15 ?>

.htaccess and leopard server

I searched the web for a few links on how to enable this, basically what I neded to do was allow this code:

RewriteEngine on

RewriteBase /

#RewriteRule ^[a-zA-Z0-9/]+$ /index.php [L]

RewriteRule ^[^\.]{1,245}$ /index.php [L]

RewriteRule ^[^\.]{1,245}/$ /index.php [L]

to be executed as the site is served. This would allow SingleTrack’s clean URLs to function under PHP.

I started looked at a lot of posts recommending how to turn on .htaccess (it’s off by default in OS X Server leopard as it was in 10.4) and found these:

Finally after messing with the files at the command line level I found this post on Apple’s website: Simple enough, I had been outthinking myself. I opened up the gui found the spot I need to select and clicked it off. (see pic)

Tweets motion