2019-01-15 12:58:10 +00:00
|
|
|
RewriteEngine On
|
2019-01-18 12:04:19 +00:00
|
|
|
RewriteRule ^favicon.ico$ styles/bootstrap/favicon.ico [L]
|
|
|
|
|
2019-01-15 12:58:10 +00:00
|
|
|
# Store the current location in an environment variable CWD to use
|
|
|
|
# mod_rewrite in .htaccess files without knowing the RewriteBase
|
|
|
|
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
|
|
|
|
RewriteRule ^.*$ - [E=CWD:%2]
|
|
|
|
|
2019-07-30 14:31:21 +00:00
|
|
|
# Do not allow access on the other directories in www
|
|
|
|
RewriteRule "^utils/.*$" "" [F]
|
|
|
|
RewriteRule "^doc/.*$" "" [F]
|
|
|
|
|
2019-01-15 12:58:10 +00:00
|
|
|
# Anything below the following dirs will never be rewritten
|
|
|
|
RewriteRule "^pdfviewer/.*$" "-" [L]
|
|
|
|
RewriteRule "^views/bootstrap/images.*$" "-" [L]
|
|
|
|
RewriteRule "^out/images.*$" "-" [L]
|
|
|
|
RewriteRule "^styles/.*$" "-" [L]
|
|
|
|
|
|
|
|
# Accessing a file in an extension is always possible
|
|
|
|
# Added for old extensions which do not use routes
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f
|
|
|
|
RewriteRule "^ext/.*$" "-" [L]
|
|
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-l
|
|
|
|
RewriteRule ^.*$ %{ENV:CWD}index.php [QSA,L]
|