From b3b3e79e27facdbe2a7ac67bc4b8d216b1fbb0dc Mon Sep 17 00:00:00 2001 From: Timid Robot Zehta Date: Mon, 31 Mar 2025 08:06:35 +0200 Subject: [PATCH] make Rewrite REGEX more specific, fixes #90 --- config/web-sites-available/000-default.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/web-sites-available/000-default.conf b/config/web-sites-available/000-default.conf index dc267fd..a2a7e11 100644 --- a/config/web-sites-available/000-default.conf +++ b/config/web-sites-available/000-default.conf @@ -153,13 +153,13 @@ ServerName localhost:8080 # https://codex.wordpress.org/Using_Permalinks # Directory Conditions RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_URI} !^/rdf - RewriteCond %{REQUEST_URI} !^/publicdomain - RewriteCond %{REQUEST_URI} !^/platform/toolkit - RewriteCond %{REQUEST_URI} !^/licen[cs]es - RewriteCond %{REQUEST_URI} !^/faq - RewriteCond %{REQUEST_URI} !^/choose - RewriteCond %{REQUEST_URI} !^/cc-legal-tools + RewriteCond %{REQUEST_URI} !^/rdf(/|$) + RewriteCond %{REQUEST_URI} !^/publicdomain(/|$) + RewriteCond %{REQUEST_URI} !^/platform/toolkit(/|$) + RewriteCond %{REQUEST_URI} !^/licen[cs]es(/|$) + RewriteCond %{REQUEST_URI} !^/faq(/|$) + RewriteCond %{REQUEST_URI} !^/choose(/|$) + RewriteCond %{REQUEST_URI} !^/cc-legal-tools(/|$) # File Conditions RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/schema.rdf$