From 123c7ad27f38823aea5200a1d2ee3374d6ca2b05 Mon Sep 17 00:00:00 2001 From: John Klehm Date: Mon, 7 Apr 2008 15:03:58 -0500 Subject: htaccess: enable rewrite engine and provide rules for "nice urls" --- .htaccess | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/.htaccess b/.htaccess index dc28799..639d44d 100644 --- a/.htaccess +++ b/.htaccess @@ -24,3 +24,15 @@ php_value session.gc_probability 1 # lower the probability of calling garbage collection # the appdb gets so many hits we want to increase the divisor above 100 php_value session.gc_divisor 2000 + +# turn on mod rewrite +RewriteEngine On +Options FollowSymLinks + +# directory to operate on +RewriteBase / + +# "nice urls" rules +RewriteRule ^app/([a-zA-Z0-9\-]*)$ matchByVerbAndTerm.php?sVerb=app&sTerm=$1 +#map relative urls back into root +RewriteRule ^app/([a-zA-Z0-9_/]+\.[a-zA-Z0-9]{2,4})$ $1 -- 1.5.4.5