Dynamic URLS?

Posted on 2005-04-10
Last Modified: 2013-12-24
Being a newbie ... I find the slightest mention of a development term ... and assume I can use! :-)
Perhaps this is another example?

I have many differemt 'views' on specific pages on my web site using URL variables ... i.e. ... etc

The ONLY problem with this ... is the complexity of having the user either bookmark the url to get back ... directly... or recalling the naming convention of my URL variables!  Not friendly!

Is there a way ... to DYNAMICALLY (*programmatically? [CF?]) 'point' say .... -> to
such that ... when the user enters ... they are taken to the above complicated url

OR ... even better ... ?

I use CFmx ... and mysql ... and IIS on NTbox

Question by:rcbuchanan
    LVL 9

    Assisted Solution

    you could put something like this in the index page
    <cfset site =CGI.SERVER_NAME/>
    <cfif listfindnocase(site,"gwbush",".")>
          <cflocation url="" addtoken="no">
    LVL 7

    Assisted Solution

    There is a way to programmatically do this the results would look like this instead:

    This is also more search engine friendly, ALOT more.

    You can find a tutorial on this over here:

    LVL 9

    Assisted Solution


    This should work also. its rather... err.. workaround..


    create a domain called gwbush, and default the site to index.cfm
    next create an index.cfm inside gwbush
    <cflocation url="">

    thats it.

    create a list of urls to go to but you have to go to a specific page to do this..

    <cfswitch ="#URL#">
    <cfcase "gwbush">
      <cflocation url="">
    <cfcase "bclinton">
      <cflocation url="">
    <cfcase "bgates">
      <cflocation url="">

    this is more like fusebox methodology. all pages passes through index.cfm

    hmm.. i think this is through your Domain to redirect to another page.
    create a domain and set the default page to go to
    <cflocation url="">
    LVL 9

    Accepted Solution

    you could also store these information in a table
    GoFrom - Path
    gwbush -
    bgates -


    this link.cfm will query the LookupTable for  gwbush then redirects the path from the table.

    Featured Post

    Superior storage. Superior surveillance.

    WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

    Join & Write a Comment

    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now