ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 14th, 2003, 03:08 AM
rolty's Avatar
rolty rolty is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2001
Location: UK
Posts: 519 rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 2 sec
Reputation Power: 51
url rewriting in cold fusion

I wonder if anyone can help me... I work 99% with Apache and php, etc, but have one client who is on Windows and cold fusion. We want to get rid of the query strings on his pages as it is interfering with search engine spiders. I know how to do this on Apache, but havent a clue how to achieve it on a Windows server. I believe it can be done via asp, but we have only cfm and SQL Server I believe... any ideas?

Reply With Quote
  #2  
Old August 14th, 2003, 08:28 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,480 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 33 m 17 sec
Reputation Power: 42
This might help. Basically it takes some changes to IIS before you can make it work I think.

http://www.houseoffusion.com/cf_lis...25342&forumid=4

http://www.houseoffusion.com/cf_lis...25343&forumid=4

Reply With Quote
  #3  
Old August 15th, 2003, 04:25 AM
rolty's Avatar
rolty rolty is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2001
Location: UK
Posts: 519 rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 2 sec
Reputation Power: 51
Thanks for that kiteless, I have found from researching these links that SES urls can be easily implemented using fusebox. Can fusebox be installed on a (large) existing site without redesigning it, or is it possible to recode the sesconvertor.cfm script to work with the URL scope and bypass fusebox?
So many questions...

Reply With Quote
  #4  
Old August 15th, 2003, 08:05 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,480 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 33 m 17 sec
Reputation Power: 42
No, you can't just slap Fusebox onto an existing site. It must be built using Fusebox; Fusebox is a framework.

You could TRY to modify the SES scripts that are available for Fusebox, but you might just have better luck writing your own. It's really not that hard...everything after the ".cfm" becomes a "/" delimited list of name value pairs, with the first slash in each element translating to "&" and the second slash translating to "=". Parse though it and copy the values into the URL scope, and you're done.

Reply With Quote
  #5  
Old August 15th, 2003, 09:55 AM
rolty's Avatar
rolty rolty is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2001
Location: UK
Posts: 519 rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 2 sec
Reputation Power: 51
So when I have written a few lines of script that will recreate the correct query string using a regex, do I put this (script) in the top of each file? How does the server then know where to direct the page request to?

Reply With Quote
  #6  
Old August 17th, 2003, 01:35 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,480 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 33 m 17 sec
Reputation Power: 42
The best place to do something like this is in the Application.cfm file. This file is automatically called by the CF server before anything else happens during the request. Just put the file in the root of your application. Put your SES url parsing code in there, and CF will run it prior to any other page that gets called.

Reply With Quote
  #7  
Old August 18th, 2003, 04:17 AM
rolty's Avatar
rolty rolty is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2001
Location: UK
Posts: 519 rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 2 sec
Reputation Power: 51
I think all is now becoming clear, thank you so much for your patience, I will have a go and see what happens!

Reply With Quote
  #8  
Old August 26th, 2003, 09:59 AM
rolty's Avatar
rolty rolty is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2001
Location: UK
Posts: 519 rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 2 sec
Reputation Power: 51
I now have a moment to come back to this and am trying to get the requested url into my script. I have this:

<cfif (Len(cgi.request_uri))>
<cfset currentPath = cgi.request_uri>
<cfelseif (Len(cgi.path_info))>
<cfset currentPath = cgi.path_info>
</cfif>
<cfoutput>#currentPath#<br></cfoutput>

which does give me the current path but it strips out the query string... where do I find it??

Reply With Quote
  #9  
Old August 26th, 2003, 11:01 AM
rolty's Avatar
rolty rolty is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2001
Location: UK
Posts: 519 rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 2 sec
Reputation Power: 51
sorry, forget that, I found it myself in #cgi.query_string#...
Back to the scripting board...

Reply With Quote
  #10  
Old March 5th, 2004, 10:53 AM
mnauta mnauta is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 7 mnauta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 50 sec
Reputation Power: 0
Quote:
Originally Posted by rolty
I wonder if anyone can help me... I work 99% with Apache and php, etc, but have one client who is on Windows and cold fusion. We want to get rid of the query strings on his pages as it is interfering with search engine spiders. I know how to do this on Apache, but havent a clue how to achieve it on a Windows server. I believe it can be done via asp, but we have only cfm and SQL Server I believe... any ideas?


I'm using CF and Apache on linux server. How do you get rid of the query string with Apache?

Thanks

Reply With Quote
  #11  
Old March 5th, 2004, 11:50 AM
rolty's Avatar
rolty rolty is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2001
Location: UK
Posts: 519 rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level)rolty User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 2 sec
Reputation Power: 51
Quote:
Originally Posted by mnauta
I'm using CF and Apache on linux server. How do you get rid of the query string with Apache?

Thanks

mod_rewrite! Absolutely brilliant, -you can do nearly anything except rule the world, be prepared to do a little head work to figuire out the possibilities, start here:
http://httpd.apache.org/docs/mod/mod_rewrite.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > url rewriting in cold fusion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |