Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6670765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:18:27+00:00 2026-05-26T03:18:27+00:00

I am using ColdFusion 9.1.2. I set up a new web site that parses

  • 0

I am using ColdFusion 9.1.2.

I set up a new web site that parses the query string after the domain name and slash. What is left is the MusicianID and then a string used to help with SEO. The URL looks like this:

http://awesomealbums.info/?1085/jim-croce
http://awesomealbums.info/?1077/james-taylor

When I share it using Facebook, Facebook removes the question mark and encodes it. They can’t seem to parse it so they display it as the home page.

These throw an error that I can’t control:

http://awesomealbums.info/1085/jim-croce
http://awesomealbums.info/1077/james-taylor

I notice that StackOverlfow and other sites are able to exclude the question mark that starts a query string. I would like to do the same. I, however, can’t change any IIS or CF Administrator settings. I need to code the solution. I’ve tried, but I get IIS telling me they can’t find the page.

I want my URLs to look like this:

http://awesomealbums.info/1085/jim-croce // same as above but no ?
http://awesomealbums.info/1077/james-taylor // same as above but no ?

Here’s the code that I am using right now to parse the URL and get the MusicianID.

 <cfscript>
QString = CGI.QUERY_STRING;
if (QString eq "") {
    include "Home.cfm";
} else if (QString eq "WhoAmI") {
    include "WhoAmI.cfm";
} else {
    IndexOfSlash = Find("/", QString);
    if (IndexOfSlash eq 5) {
        ThisID = left(QString, 4);
        if (isNumeric(ThisID)) {
            MusicianID = ThisID;
            include "Musician.cfm";
        }
    } else {
        location(url="http://www.awesomealbums.info" addtoken="false");
    }
}

How can I alter my site so that the question mark can be removed and the web server doesn’t get funky and I can parse out the query string?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:18:28+00:00Added an answer on May 26, 2026 at 3:18 am

    The keyword you are looking for is URL rewriting. It has to happen on the web server, since you want to handle all requests in the top-level directory. If your web server is the Apache httpd, you can do it like this:

    RewriteEngine on
    RewriteRule ^/(\d{4})/([\w-]+)$ /?$1/$2 [L]
    

    or

    RewriteRule ^/(\d{4})/([\w-]+)$ /Musician.cfm?MusicianID=$1 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ColdFusion 9.0.1 I have a new site that is accessible through
using CFMX7 and Oracle 10g ent on a query-intensive and active web site, I'm
I am using ColdFusion (Railo 3.3), and I have several forms using jQuery that
I have set caching on a query that is getting run a lot of
I'm using ColdFusion to return a result set from a SQL database and turn
I am using Microsoft XML Excel with ColdFusion to display my query results on
I have a web application, written in ColdFusion, which periodically starts using 100% of
I am using ColdFusion 8.0.1 I am working on an existing application that has
We are using ColdFusion MX7. The CFDOCUMENT tag uses iText for the PDF creation
I'm using coldfusion 9 and I'm trying to grab a file from an ftp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.