I have my answer: Following Apache mod_rewrite rule can be used for users who are having an issue with mod_rewrite demanding a trailing slash.
RewriteRule ^([^\.]+)$ /index.cfm?furl=$1&%1 [L,PT,QSA] On Sep 25, 3:19 pm, MJS <[email protected]> wrote: > Well I found a rule that works: > > RewriteRule ^(.+)/$ /index.cfm?furl=$1&%1 [L,PT,QSA] > > The site wants all URLs to end with a slash. > > http://mydomain/contact FAILShttp://mydomain/contact/WORKS > > So, next question is, what should I setup in the Friendly URL Config > to ensure that Friendly URLs end with a slash (/) > > THANK YOU! > > On Sep 25, 9:39 am, MJS <[email protected]> wrote: > > > I have tried a number of combinations. The only rule that seems to > > work to show the pingFU is > > RewriteRule ^(.*)$ /index.cfm?furl=$1&%1 [L,PT,QSA] > > > However, if I try to go to any other page on the site I get: > > > 500 > > ROOT CAUSE: > > coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is > > undefined. > > at coldfusion.runtime.CfJspPage._get(CfJspPage.java:241) > > at coldfusion.runtime.CfJspPage._get(CfJspPage.java:226) > > at coldfusion.runtime.CfJspPage.resolveCanonicalName > > (CfJspPage.java: > > 1663) > > at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1600) > > at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1588) > > at cfdisplay2ecfm464451518._factor14(C:\WEBDEV\farcry_root\core > > \tags > > \navajo\display.cfm:42) > > at cfdisplay2ecfm464451518._factor16(C:\WEBDEV\farcry_root\core > > \tags > > \navajo\display.cfm:40) > > at cfdisplay2ecfm464451518.runPage(C:\WEBDEV\farcry_root\core > > \tags > > \navajo\display.cfm:1) > > > Does anyone have any other thoughts. I appreciate the advise! > > > -- > > Michael > > > On Sep 24, 8:30 pm, Tomek Kott <[email protected]> wrote: > > > > I think what some other users found (including myself) is the need to use > > > ?furl=/$1 in the mod_rewrite statement. Try that, it might just help! > > > > Tomek > > > > On Thu, Sep 24, 2009 at 7:11 PM, MJS <[email protected]> wrote: > > > > > Using the Rule I sent previous, I cannot get to the pingFU > > > > > However, if I use: > > > > > RewriteRule ^(.*)$ /index.cfm?furl=$1&%1 [L,PT,QSA] > > > > > I can get to the pingFU just fine, but then any other page gives the > > > > following error: > > > > > 500 > > > > ROOT CAUSE: > > > > coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is > > > > undefined. > > > > at coldfusion.runtime.CfJspPage._get(CfJspPage.java:241) > > > > at coldfusion.runtime.CfJspPage._get(CfJspPage.java:226) > > > > at > > > > coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java: > > > > 1663) > > > > at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1600) > > > > at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1588) > > > > at > > > > cfdisplay2ecfm464451518._factor14(C:\WEBDEV\farcry_root\core\tags > > > > \navajo\display.cfm:42) > > > > at > > > > cfdisplay2ecfm464451518._factor16(C:\WEBDEV\farcry_root\core\tags > > > > \navajo\display.cfm:40) > > > > at > > > > cfdisplay2ecfm464451518.runPage(C:\WEBDEV\farcry_root\core\tags > > > > \navajo\display.cfm:1) > > > > > I should also note that I have to force FUs to work by using <cfset > > > > application.fc.factory.farfu.turnon () />. If I do not use this the > > > > site goes back to vanilla objectid's > > > > > Thanks you! > > > > > On Sep 24, 6:56 pm, AJ Mercer <[email protected]> wrote: > > > > > Try going to this page > > > > > /pingFU > > > > > eghttp://myFarcrySite.com/pingFU > > > > > > This is what farcry uses internally to see if it can use Furls > > > > > > 2009/9/25 MJ <[email protected]> > > > > > > > We just updated a site from V4 to V5.2. Everything went smooth, > > > > > > save > > > > > > for Friendly URLs. The site is using Apache with mod_rewrite (FUs > > > > > > worked great on V4). I am using the following to no avail: > > > > > > > RewriteEngine On > > > > > > RewriteCond %{REQUEST_URI} !(^/farcry|^/webtop|^/flex2gateway|^/ > > > > > > flashservices|^/CFIDE)($|/) > > > > > > RewriteRule > > > > > > ^([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*...@\#\$\ \ > > > > > > (\)\^_`~]*)$ /index.cfm?furl=$1 [L,PT,QSA] > > > > > > > If I force FU's on by using <cfset > > > > > > application.fc.factory.farfu.turnon > > > > > > () /> > > > > > > > I still cannot get the FU's to work. > > > > > > > Any thoughts? > > > > > > > Side note, we have update apps, checked the db for FUs, restarted > > > > > > the > > > > > > server, etc. > > > > > > -- > > > > > AJ Mercer > > > > > Web Log:http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~---
