Skip to content

Commit 2ee139e

Browse files
authored
rewrite access to pages/plugins/layouts dirs
1 parent 5402f59 commit 2ee139e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.htaccess

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
## Paths explicitly blocked from being handled by the server, except for admin and robots
1414
RewriteRule ^config.php index.php [L,NC]
15+
RewriteRule ^pages/* index.php [L,NC]
16+
RewriteRule ^plugins/* index.php [L,NC]
17+
RewriteRule ^layouts/* index.php [L,NC]
1518
RewriteRule ^robots.txt robots.txt [L,NC]
1619

1720
## Paths explicitly handled by the server
1821
RewriteCond %{REQUEST_FILENAME} -f
1922
RewriteCond %{REQUEST_FILENAME} !/.well-known/*
2023
RewriteCond %{REQUEST_FILENAME} !/content/.*
2124
RewriteCond %{REQUEST_FILENAME} !/assets/.*
22-
RewriteCond %{REQUEST_FILENAME} !/pages/.*
23-
RewriteCond %{REQUEST_FILENAME} !/plugins/.*
24-
RewriteCond %{REQUEST_FILENAME} !/layouts/.*
2525
RewriteRule !^index.php index.php [L,NC]
2626

2727
## Block all PHP files, except index

0 commit comments

Comments
 (0)