mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-17 14:30:58 +00:00
.htaccess needed for new router code
This commit is contained in:
parent
7c2c1cecc0
commit
1f8f7d350a
21
.htaccess
Normal file
21
.htaccess
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
RewriteEngine On
|
||||||
|
# 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]
|
||||||
|
|
||||||
|
# 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]
|
Loading…
Reference in New Issue
Block a user