Skip to content

Commit b3b3e79

Browse files
committed
make Rewrite REGEX more specific, fixes #90
1 parent 9222dd6 commit b3b3e79

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

config/web-sites-available/000-default.conf

+7-7
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ ServerName localhost:8080
153153
# https://codex.wordpress.org/Using_Permalinks
154154
# Directory Conditions
155155
RewriteCond %{REQUEST_FILENAME} !-d
156-
RewriteCond %{REQUEST_URI} !^/rdf
157-
RewriteCond %{REQUEST_URI} !^/publicdomain
158-
RewriteCond %{REQUEST_URI} !^/platform/toolkit
159-
RewriteCond %{REQUEST_URI} !^/licen[cs]es
160-
RewriteCond %{REQUEST_URI} !^/faq
161-
RewriteCond %{REQUEST_URI} !^/choose
162-
RewriteCond %{REQUEST_URI} !^/cc-legal-tools
156+
RewriteCond %{REQUEST_URI} !^/rdf(/|$)
157+
RewriteCond %{REQUEST_URI} !^/publicdomain(/|$)
158+
RewriteCond %{REQUEST_URI} !^/platform/toolkit(/|$)
159+
RewriteCond %{REQUEST_URI} !^/licen[cs]es(/|$)
160+
RewriteCond %{REQUEST_URI} !^/faq(/|$)
161+
RewriteCond %{REQUEST_URI} !^/choose(/|$)
162+
RewriteCond %{REQUEST_URI} !^/cc-legal-tools(/|$)
163163
# File Conditions
164164
RewriteCond %{REQUEST_FILENAME} !-f
165165
RewriteCond %{REQUEST_URI} !^/schema.rdf$

0 commit comments

Comments
 (0)