Htaccess File

Luavis/GalaxyEngine/master/.htaccess

QUERY_STRING
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]
Exit mobile version