Česky
Kamil Dudka

Web components

File detail

Name:Download.htaccess [Download]
Location: src
Size:1013 B
Last modification:2008-02-01 10:40

Source code

RewriteEngine on
 
# Redirect to index
RewriteRule ^$ index.php?page=index [L,QSA]
 
# FileBrowser - EXPERIMENTAL
RewriteRule ^([^\/]+)\/files$ index.php?page=$1&show=FileBrowser&path=/ [L,QSA]
RewriteRule ^([^\/]+)\/files\/(.*)$ index.php?page=$1&show=FileBrowser&path=$2 [L,QSA]
RewriteRule ^([^\/]+)\/html\/(.*)$ index.php?page=$1&show=FileBrowser&path=$2&action=directAccess [L,QSA]
RewriteRule ^([^\/]+)\/php\/(.*)$ index.php?page=$1&show=FileBrowser&path=$2&action=execPHP [L,QSA]
 
# Direct access to robots.txt
RewriteCond %{REQUEST_URI} !\/robots\.txt$
 
# Access to style directory
RewriteCond %{REQUEST_URI} !\/style\/[A-Za-z0-9_\/]+\.(css|htc)$
 
# Access to script directory
RewriteCond %{REQUEST_URI} !\/script\/[A-Za-z0-9_\/]+\.js$
 
# Access to DTD directory
RewriteCond %{REQUEST_URI} !\/dtd\/[A-Za-z0-9_\/]+\.dtd$
 
# Access to img directory
RewriteCond %{REQUEST_URI} !\/img\/[A-Za-z0-9_\/]+\.[A-Za-z0-9]+$
 
# Display ordinary page
RewriteRule ^([^\/]*)\/?(.*)$ index.php?page=$1&nestedPage=$2 [L,QSA]