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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:40:28+00:00 2026-06-05T21:40:28+00:00

I am developing a new site in ColdFusion 10 and doing some url rewriting

  • 0

I am developing a new site in ColdFusion 10 and doing some url rewriting using the .htaccess file. I have three rules that work very well when I call them without other includes. When I wrap them in includes, I get an error.

Here are my rules:

RewriteEngine on
RewriteRule ^advertise$ /index.cfm?Section=Advertise
RewriteRule ^bike/([0-9]+)/([0-9]+)/ /index.cfm?Section=Bike&BikeID=$1&FeatureID=$2
RewriteRule ^bike/([0-9]+)/ /index.cfm?Section=Bike&BikeID=$1

The index page figures our which section to show and calls includes the appropriate file wrapped around a header and footer, like this:

include "header.cfm"; 
include "#VARIABLES.Section#.cfm";
include "footer.cfm";

The problem is, it doesn’t quite work for the “Bike” pages, the second two rules. It appears that the header file is included several times, which makes the links to the CSS and other files bad, which messes up the page. If I comment out the header and footer includes, everything works just fine, but there’s no header or footer, which is not what I want.

// include "header.cfm"; 
include "#VARIABLES.Section#.cfm";
// include "footer.cfm";

Is there something in the url rewrite rules that causes the bike pages to be loaded several times and then fail?

http://flyingpiston2012-com.securec37.ezhostingserver.com/

You can try the page here and see the problem by clicking the links. Any ideas on how to fix this?

UPDATE

When I make all of my links absolute by including the entire URL, the problem goes away.

<cfoutput>
<link href="#APP.Home#/bootstrap/css/bootstrap.css" rel="stylesheet">
</cfoutput>

Still, I should NOT have to include an absolute path to files. Any hints as to why this isn’t working for me?

UPDATE

// THIS FIXES THE PROBLEM
<base href="#APP.Home#/">
<link href="/bootstrap/css/bootstrap.css" rel="stylesheet">

// THIS FIXES THE PROBLEM
<link href="#APP.Home#/bootstrap/css/bootstrap.css" rel="stylesheet">

// THIS IS THE PROBLEM
<link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
  • 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-06-05T21:40:29+00:00Added an answer on June 5, 2026 at 9:40 pm

    This could happen because you didn’t tell Apache to stop parsing on match. Try to make rules look like this:

    RewriteRule ^advertise$ /index.cfm?Section=Advertise [L]
    RewriteRule ^bike/([0-9]+)/([0-9]+)/ /index.cfm?Section=Bike&BikeID=$1&FeatureID=$2 [L]
    RewriteRule ^bike/([0-9]+)/ /index.cfm?Section=Bike&BikeID=$1 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a new site that graphs some operational metrics. As such about a
I'm developing a new client-server app (.Net) and have up until now been using
i'm developing a new site and i have this situation: - Products \_ Category1
I'm developing a login and authentication system for a new PHP site and have
I have a client who recycles cans. We're developing a new web site for
I’m looking at using Expression Engine for a new site I’m developing does anyone
I have created a rotating banner script for a new site I'm developing View
Noob in mod_rewrite here...I'm developing a new site and using mod_rewrite. The problem is,
I have a site I am developing and it has a table that stores
Im developing a new site, and I'd like to store my rewrite rules in

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.