[SITE] unify config between projects, updated htaccess
This commit is contained in:
parent
1e29916915
commit
f1468a2af8
5 changed files with 37 additions and 32 deletions
|
@ -9,10 +9,13 @@ RewriteBase /
|
|||
RewriteRule ^content/(.*)\.(txt|md|mdown)$ index.php [L]
|
||||
|
||||
# block all files in the site folder from being accessed directly
|
||||
# except for requests to plugin assets files
|
||||
#RewriteRule ^assets/plugins/([a-zA-Z0-9\.\-_%=]+)/(.*)$ site/plugins/$1/assets/$2 [L,N]
|
||||
#RewriteCond $1 !^plugins/[a-zA-Z0-9\.\-_%=]+/assets/.*
|
||||
RewriteRule ^site/(.*) index.php [L]
|
||||
|
||||
# block all files in the kirby folder from being accessed directly
|
||||
RewriteRule ^kirby/(.*) index.php [L]
|
||||
# block direct access to kirby and the panel sources
|
||||
RewriteRule ^(kirby|panel\/app|panel\/tests)/(.*) index.php [L]
|
||||
|
||||
# make panel links work
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue