Browse files

media manager rewrite rule expansions fixes thanks to Andrew!

  • Loading branch information...
1 parent 394cd5a commit e25deb6e5383b02afec10c0f54954709f75318bd @lmajano lmajano committed Apr 17, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 .htaccess
  2. +1 −0 modules/contentbox-installer/model/web.config
View
2 .htaccess
@@ -30,7 +30,7 @@ RewriteCond %{REQUEST_URI} ^/(.*(flashservices|flex2gateway|flex-remoting)).*$
RewriteRule ^(.*)$ - [NC,L]
#Images, css, javascript and docs, add your own extensions if needed.
-RewriteCond %{REQUEST_URI} \.(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|ico)$
+RewriteCond %{REQUEST_URI} \.(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|ico|swf)$
RewriteRule ^(.*)$ - [NC,L]
#The ColdBox index.cfm/{path_info} rules.
View
1 modules/contentbox-installer/model/web.config
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <defaultDocument> <files> <clear /> <add value="index.cfm" /> <add value="Default.htm" /> <add value="Default.asp" /> <add value="index.htm" /> <add value="index.html" /> <add value="iisstart.htm" /> <add value="default.aspx" /> </files> </defaultDocument> <rewrite> <rules> <rule name="Application Adminsitration" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{SCRIPT_NAME}" pattern="^/(.*(CFIDE|cfide|CFFormGateway|jrunscripts|railo-context|fckeditor)).*$" ignoreCase="false" /> </conditions> <action type="None" /> </rule> <rule name="Flash and Flex Communication" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{SCRIPT_NAME}" pattern="^/(.*(flashservices|flex2gateway|flex-remoting)).*$" ignoreCase="false" /> </conditions> <action type="Rewrite" url="index.cfm/{PATH_INFO}" appendQueryString="true" /> </rule> <rule name="Static Files" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{SCRIPT_NAME}" pattern="\.(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|swf)$" ignoreCase="false" /> </conditions> <action type="None" /> </rule> <rule name="Insert index.cfm" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.cfm/{PATH_INFO}" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration>

0 comments on commit e25deb6

Please sign in to comment.