.htaccess 575 Bytes
Newer Older
1
RewriteBase /applications/
Jonathan Riddell's avatar
Jonathan Riddell committed
2 3 4 5 6 7 8

# NOTE: we'll skip all rules if the path is an icons path!
RewriteCond %{REQUEST_FILENAME} "^.*/icons/.*"
RewriteRule  .?  -  [S=5]
# ... and also skip fonts.
RewriteCond %{REQUEST_FILENAME} "^.*/fonts/.*"
RewriteRule  .?  -  [S=4]
Ben Cooksley's avatar
Ben Cooksley committed
9 10 11

# Rewrite the application and category pages
RewriteRule ^([\w]+)/?$ applicationlist.php?category=$1 [NS,PT]
12 13
RewriteRule ^([\w]+)/([^\/]+)/?$ applicationpage.php?category=$1&application=$2 [NS,PT]
RewriteRule ^([\w]+)/([^\/]+)/development/?$ applicationpage.php?category=$1&application=$2&development=true [NS,PT]