Archive for July, 2008

25
Jul
08

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/application.inc');
11 abort;
12 /if;
13 };
14
15 ?>
03
Jul
08

.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:

http://maisonbisson.com/blog/post/10761/enabling-htaccess-on-mac-os-x

http://www.listsearch.com/WebAuthoring/Thread/index.lasso?599#2504

http://www.macosxhints.com/article.php?story=20080602124851473

http://episteme.arstechnica.com/eve/forums/a/tpc/f/8300945231/m/639002960931

Finally after messing with the files at the command line level I found this post on Apple’s website:

http://discussions.apple.com/thread.jspa?threadID=1488860&tstart=183 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

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

del.icio.us motion