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 7532785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:33:11+00:00 2026-05-30T05:33:11+00:00

I have an application I’m building in ColdFusion, whereby all requests will run through

  • 0

I have an application I’m building in ColdFusion, whereby all requests will run through the index.cfm file.

I have a .htaccess file that rewrites the URL. So, for example…if I write:

http://domain.com/hello/goodbye/howdy

The actual request always uses index.cfm like so:

http://domain.com/index.cfm/hello/goodbye/howdy

This all works great, but now I’m stuck with how I can grab everything that is in the URL. Not one of the CGI variables don’t seem to output the “/hello/goodbye/howdy” part of the URL.

I have tried cgi.path_info and cgi.query_string etc to no avail…they’re just blank.

I need to grab everything that comes after the domain name, and do stuff in CF with it. I know it’s possible in JS, but I really need this on the server.

Dumping the CGI scope shows me nothing useful in this regard:

<cfdump var="#cgi#" />

Here’s my htaccess file for reference:

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /
RewriteRule ^index\.cfm$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.cfm [L]

RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} !^([^\.]+)\.domain\.com
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

</IfModule>

Thanks.

EDIT:

As an additional note, I’ve also tried the underlying Java methods like so:

<cfdump var="#getPageContext().getRequest().getContextPath()#" />
<cfdump var="#getPageContext().getRequest().getRequestURL()#" />
<cfdump var="#getPageContext().getRequest().getQueryString()#" />

To no success 🙁

  • 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-30T05:33:12+00:00Added an answer on May 30, 2026 at 5:33 am
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^index\.cfm$ - [L]
    
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteCond %{HTTP_HOST} !^([^\.]+)\.domain\.com
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    
    #Change exists here:
    RewriteRule ^(.*)$ /index.cfm?actualuri=$1 [L,QSA]
    
    </IfModule>
    

    try cgi.query_string now. It should have actualuri=/the/path/sent.
    Also, put the rewrite rules in the same order as put above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have application in subfolder http://example.com/some/other/sub/folder/ . And .htaccess file: RewriteEngine on RewriteBase /some/other/sub/folder
I have application created with Spring and has access through jmx to set some
I have application where i can change XAML file. For example: Move and resize
I have application use SDF file and I use System.Data.SqlServerCe, Version 3.5.0.0 I make
I have application packed as an .ear file with ejb module inside. There is
I have application building using third party apis, j2me apis,application code distributed in various
I have application mywebapp. This application depends from myjarconfig.jar. File myjarconfig.jar contains file config.xml.
i have application in which i have display question on allcard view and all
I have application which exports data in csv file which is stored in Document's
i have application with Combobox who show all the network adapter on my machine

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.