pitylee/BST-CMS-old/master/.htaccess
AuthType Basic
AuthName "Login required"
AuthUserFile /var/www/cms/.htpasswd
Require valid-user
Options -Indexes
<Files ~ ".(htm|html|css|js|php)$">
AddDefaultCharset UTF-8
DefaultLanguage en-US
</Files>
RewriteEngine On
RewriteBase /
RewriteRule ^api/(.*)$ assets/api.php?param=$1 [L]
RewriteRule ^ajax/(.*)$ assets/ajax.php?param=$1 [L]
RewriteRule ^images/jqui/(.*)$ assets/assets.php?param=jqui/$1 [L]
RewriteRule ^images/(.*)$ uploads/images/$1 [L]
RewriteRule ^design/(.*)$ assets/assets.php?param=design/$1 [L]
RewriteRule ^ddesign/(.*)$ assets/assets.php?dev¶m=design/$1 [L]
RewriteRule ^resized/(.*)$ assets/assets.php?param=resized/$1 [L]
RewriteRule ^dresized/(.*)$ assets/assets.php?dev¶m=resized/$1 [L]
RewriteRule ^less/(.*)$ assets/assets.php?param=less/$1 [L]
RewriteRule ^css/(.*)$ assets/assets.php?param=css/$1 [L]
RewriteRule ^js/(.*)$ assets/assets.php?param=js/$1 [L]
# Stuff when on admin
RewriteRule ^administrator/api/(.*)$ assets/api.php?admin=true¶m=$1 [L]
RewriteRule ^administrator/ajax/(.*)$ assets/ajax.php?admin=true¶m=$1 [L]
RewriteRule ^administrator/images/jqui/(.*)$ assets/assets.php?admin=true¶m=jqui/$1 [L]
RewriteRule ^administrator/design/(.*)$ assets/assets.php?admin=true¶m=design/$1 [L]
RewriteRule ^administrator/ddesign/(.*)$ assets/assets.php?admin=true&dev¶m=design/$1 [L]
RewriteRule ^administrator/resized/(.*)$ assets/assets.php?admin=true¶m=resized/$1 [L]
RewriteRule ^administrator/dresized/(.*)$ assets/assets.php?admin=true&dev¶m=resized/$1 [L]
RewriteRule ^administrator/less/(.*)$ assets/assets.php?admin=true¶m=less/$1 [L]
RewriteRule ^administrator/css/(.*)$ assets/assets.php?admin=true¶m=css/$1 [L]
RewriteRule ^administrator/js/(.*)$ assets/assets.php?admin=true¶m=js/$1 [L]
RewriteRule ^administrator/(.*)$ admin.php?admin=true¶m=$1 [L]
# Stuff when on index
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?param=$1 [L]
On Github License
Files