Forum Moderators: phranque

Message Too Old, No Replies

Page names with Cold Fusion / Fusebox

         

itrainu

1:51 pm on Jan 29, 2006 (gmt 0)

10+ Year Member



I am working with a client whose site was created something called Fusebox. What I see are pages that end in .cfm therefore I thought Cold Fusion ;-)

I have reason to believe that the method in which the pages are named is causing Google not to index the site - I faced this before with a site that had periods in the URLs.

the current URL structure looks like this : site.com/index.cfm?fuseaction=information.whatisVOIP

Is there a way that I can have page names be displayed as site.com/voip.cfm using URL rewriting or some other technique?

OR even to replace the period between information.whatisVOIP with a hyphen?

Thanks for any pointers!

ixyst

8:59 pm on Feb 9, 2006 (gmt 0)

10+ Year Member



Depending on what version of fusebox the site is using, there are different ways it can be modified...

If you are using the latest version (4.0 or 4.1), you can change the dot to hyphen by opening "fusebox4.runtime.cfmx.cfm" file and editting line 185-195 from:

<!--- set the myFusebox.originalCircuit, myFusebox.originalFuseaction --->
<cfif ListLen(attributes.fuseaction, '.') EQ 2>
<cfscript>
myFusebox.thisCircuit = ListFirst(attributes.fuseaction, '.');
myFusebox.thisFuseaction = ListLast(attributes.fuseaction, '.');
myFusebox.originalCircuit = myFusebox.thisCircuit;
myFusebox.originalFuseaction = myFusebox.thisFuseaction;
</cfscript>
<cfelse>
<cfthrow type="fusebox.malformedFuseaction" message="malformed Fuseaction" detail="You specified a malformed Fuseaction of #attributes.fuseaction#. A fully qualified Fuseaction must be in the form [Circuit].[Fuseaction].">
</cfif>

to:
<!--- set the myFusebox.originalCircuit, myFusebox.originalFuseaction --->
<cfif ListLen(attributes.fuseaction, '-') EQ 2>
<cfscript>
myFusebox.thisCircuit = ListFirst(attributes.fuseaction, '-');
myFusebox.thisFuseaction = ListLast(attributes.fuseaction, '-');
myFusebox.originalCircuit = myFusebox.thisCircuit;
myFusebox.originalFuseaction = myFusebox.thisFuseaction;
</cfscript>
<cfelse>
<cfthrow type="fusebox.malformedFuseaction" message="malformed Fuseaction" detail="You specified a malformed Fuseaction of #attributes.fuseaction#. A fully qualified Fuseaction must be in the form [Circuit].[Fuseaction].">
</cfif>

Keep in mind that depending on who wrote the app, this may cause problems. If the app was written the right way, it will not break it, but if some I-know-everything guy decided to take shortcuts here and there (by parsing out the URL in the code he wrote), this may be a problem for you...

itrainu

8:55 pm on Feb 10, 2006 (gmt 0)

10+ Year Member



Thank you for the explicit instructions!

looking for work? *grin*

ixyst

6:30 pm on Feb 14, 2006 (gmt 0)

10+ Year Member



Actually, I am overwhelmed with work these days :) But I will be happy to answer any questions (solve any minor problems) that you may encounter, on this forum :)