PHP on T R A X
Rapid Application Development Made Easy

root/tags/rel_0-12-0/public/.htaccess

Revision 77, 1.0 kB (checked in by john, 3 years ago)

updated .htaccess

Line 
1 # php include_path to Trax config directory
2 php_value include_path .:/home/<username>/trax/config
3
4 # Redirect all requests not available on the filesystem to Trax
5 RewriteEngine On
6
7 # If you don't want Trax to look in certain directories,
8 # use the following rewrite rules so that Apache won't rewrite certain requests
9 #
10 # Example:
11 #   RewriteCond %{REQUEST_URI} ^/nottrax.*
12 #   RewriteRule .* - [L]
13
14 # If your Trax application is accessed via an Alias directive,
15 # then you MUST also set the RewriteBase in this htaccess file.
16 #
17 # Example:
18 #   Alias /mytraxapp /path/to/mytraxapp/public
19 #   RewriteBase /mytraxapp
20
21 RewriteRule ^$ index.html [QSA]
22 RewriteRule ^([^.]+)$ $1.html [QSA]
23 RewriteCond %{REQUEST_FILENAME} !-f
24 RewriteCond $1 !-d
25 RewriteRule ^(.*)$ /dispatch.php?$1 [QSA,L]
26
27 # In case Trax experiences terminal errors
28 # Instead of displaying this message you can supply
29 # a file here which will be rendered instead
30 #
31 # Example:
32 #   ErrorDocument 500 /500.html
33
34 ErrorDocument 500 "<h2>Application error</h2>Trax application failed to start properly"
Note: See TracBrowser for help on using the browser.