Skip to content

Commit 9c7af1e

Browse files
authored
Merge pull request #91 from creativecommons/more-specific-component-regex
Update Apache2 rewrite RegEx more specific for non-WordPress components
2 parents 4aa9638 + b3b3e79 commit 9c7af1e

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)