ColdFusion https connection failure

If you are using cfhttp to connect via SSL (https) then the ColdFusion server definitely needs the certificate installed to successfully connect. Here is a previous answer that I gave on a similar issue: Here are the steps you need to perform in order to install the certificate to the Java keystore for ColdFusion. First, … Read more

Remove the string from URL

Here is one way to do it. <cfset normalURL = “http://test.com/myhome/live”> <cfoutput><p>#normalURL#</p></cfoutput> Output from above code: http://test.com/myhome/live <cfset stringAfterLastSlash = ListLast(normalURL,”https://stackoverflow.com/”)> <cfoutput><p>#stringAfterLastSlash#</p></cfoutput> Output from above code: live <cfset stringRemovedFromURL = Replace(normalURL,”/#stringAfterLastSlash#”,””)> <cfoutput><p>#stringRemovedFromURL#</p></cfoutput> Output from above code: http://test.com/myhome You can play with this code and see the results here.