Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 1e9c6b5

Browse files
bpamiriclaude
andcommitted
Exclude miscellaneous/ from URL rewrite rules
The dot-to-format and Wheels router rewrite rules were intercepting requests to public/miscellaneous/, preventing direct file access. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1a57811 commit 1e9c6b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public/urlrewrite.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ If you do not use Tuckey or Commandbox, this file can be safely deleted.
6464
<!-- New rule for converting format after dot to format query parameter -->
6565
<rule enabled="true">
6666
<name>Convert dot to format parameter</name>
67+
<condition type="request-uri" operator="notequal">^/miscellaneous/</condition>
6768
<from>^/(.*)\\.(\\w+)$</from>
6869
<to>/$1?format=$2</to>
6970
</rule>
7071

7172
<!-- Main framework router rule - should be last -->
7273
<rule enabled="true">
7374
<name>Wheels pretty URLs</name>
74-
<condition type="request-uri" operator="notequal">^/(cf_script|flex2gateway|jrunscripts|CFIDE/administrator|lucee/admin|cfformgateway|cffileservlet|lucee|files|img|images|css|js|wheels/public/assets|wheels/guides-assets|robots.txt|favicon.ico|sitemap.xml|index.cfm)</condition>
75+
<condition type="request-uri" operator="notequal">^/(cf_script|flex2gateway|jrunscripts|CFIDE/administrator|lucee/admin|cfformgateway|cffileservlet|lucee|miscellaneous|files|img|images|css|js|wheels/public/assets|wheels/guides-assets|robots.txt|favicon.ico|sitemap.xml|index.cfm)</condition>
7576
<from>^/(.*)$</from>
7677
<to type="passthrough">/index.cfm/$1</to>
7778
</rule>

0 commit comments

Comments
 (0)