Hi, I’m working on a website that previously was based on wordpress, so I moved wordpress in a subfolder called “old” to archive it. How can I avoid Kirby to revrite urls in that subfolder? I tried this code but it works only for the main page (www.website.com/old/), and not for its subfolders (www.website.com/old/store)
Thank you!
Lorenzo
<IfModule mod_rewrite.c>
RewriteEngine on
# --- Here ?
# RewriteCond %{HTTP_HOST} !^(.*).local$
# RewriteCond %{HTTPS} =off
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]
RewriteRule (^|/)\.(?!well-known\/) index.php [L]
RewriteRule ^content/(.*)\.(txt|md|mdown)$ index.php [L]
RewriteRule ^site/(.*) index.php [L]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteRule ^kirby/(.*) index.php [L]
RewriteRule ^(old)($|/) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>