Skip to content

Commit

Permalink
Possible fix for #367.
Browse files Browse the repository at this point in the history
  • Loading branch information
perdjurner committed May 26, 2015
1 parent afe4ba7 commit 696b738
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@

# Options +FollowSymLinks
# RewriteEngine On
# RewriteCond %{REQUEST_URI} ^.*/index.cfm/(.*)$ [NC]
# RewriteRule ^.*/index.cfm/(.*)$ ./rewrite.cfm/$1 [NS,L]
# RewriteCond %{REQUEST_URI} !^.*/(flex2gateway|jrunscripts|cfide|cfformgateway|cffileservlet|railo-context|lucee|files|images|javascripts|miscellaneous|stylesheets|robots.txt|favicon.ico|sitemap.xml|rewrite.cfm)($|/.*$) [NC]
# RewriteRule ^(.*)$ ./rewrite.cfm/$1 [NS,L]
2 changes: 2 additions & 0 deletions wheels/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Bug Fixes
=========

* Fixed rewrite rules so base URL is rewritten correctly on Apache - #367 [Jeremy Keczan, Per Djurner]
* Removed incorrect path info information set by Apache - #367 [David Belanger, Per Djurner]
* Fixed routing bug when running from a sub folder on Adobe ColdFusion 10 - [Brant Nielsen, Per Djurner]

Miscellaneous
Expand Down
6 changes: 6 additions & 0 deletions wheels/global/internal.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@
}
}
}
// some web servers incorrectly place rewrite.cfm in the path_info but since that should never be there we can safely remove it
if (Find("rewrite.cfm/", loc.rv.path_info))
{
Replace(loc.rv.path_info, "rewrite.cfm/", "");
}
</cfscript>
<cfreturn loc.rv>
</cffunction>
Expand Down

0 comments on commit 696b738

Please sign in to comment.