Luavis/GalaxyEngine/master/.htaccess - Htaccess File

Luavis/GalaxyEngine/master/.htaccess

RewriteEngine On

# index document_srl
RewriteRule ^([0-9_]+)$ ./index.php?%{QUERY_STRING}&module=index&act=document_srl&document_srl=$1 [L,QSA]

# module document_srl
RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)$ ./index.php?%{QUERY_STRING}&module=$1&act=document_srl&document_srl=$2 [L,QSA]

# upload file short url
RewriteRule ^upload$ ./index.php?&module=file&act=execFileUpload&hash=$1 [L,QSA]

# upload download short url
RewriteRule ^download@([a-zA-Z0-9]*)$ ./index.php?&module=file&act=execDownload&hash=$1 [L,QSA]

# module - action
RewriteRule ^([a-zA-Z0-9_-]+)(?:/?)([a-zA-Z0-9_-]*)$ ./index.php?%{QUERY_STRING}&module=$1&act=$2 [L,QSA]

# public - resource
RewriteRule  ^(script|stylesheet|image)/(.+)$   public/$1/$2    [L]

# sub-directory php access denied
RewriteRule ^(.+)/(.+).php$ - [L,F]

# sub-directory php access denied
RewriteRule ^cache/(.+)$ - [L,F]

#uploaded file safe
RewriteRule ^file/raw/(.+)$ - [L,F]

# module.xml access denied
RewriteRule ^(module)/(.+)/module.xml$ - [L,F]

# template html access denied
RewriteRule ^(module)/(.+)/template/(.+).html$ - [L,F]

# layout html access denied
RewriteRule ^(layout)/(.+).html$ - [L,F]

On Github License

Files

Download PDF of Htaccess file
QUERY_STRING

Comments

Apache