If it helps, here's the debug output:

init rewrite engine with requested uri /space/listing/london-nw1/1/
Htaccess process request PATH TO httpd.conf
Htaccess process request PATH TO .htaccess
applying pattern '^(.*)?' to uri 'space/listing/london-nw1/1/'
RewriteCond: input='//?/PATH TO/space/listing/london-nw1/1/' pattern='' =>
matched
RewriteCond: input='//?/PATH TO/space/listing/london-nw1/1/' pattern='' =>
matched
RewriteCond: input='/space/listing/london-nw1/1/' pattern='CFFileServlet' =>
matched
escaping /_request.cfm?rule=2&requestedPath=space/listing/london-nw1/1/
Rewrite URL to >>
/_request.cfm?rule=2&requestedPath=space/listing/london-nw1/1/
rewrite 'space/listing/london-nw1/1/' ->
'/_request.cfm?rule=2&requestedPath=space/listing/london-nw1/1/'
internal redirect with
/_request.cfm?rule=2&requestedPath=space/listing/london-nw1/1/ [INTERNAL
REDIRECT]

I'm not sure what to make of this other than the INTERNAL REDIRECT might be
the problem?

Adrian

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 12 September 2008 16:17
To: CF-Talk
Subject: OT - Rewriting causing page to be called twice


Hey all, we are using URL rewriting on a site and pages are being run twice.
This is messing up some logging scripts.

Here is the .htaccess file:

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !CFFileServlet
RewriteRule ^(.*)? /_request.cfm?rule=2&requestedPath=$1 [L]

Which says, if the file or directly doesn't exist and it's not a call to
ColdFusion's file servlet, push the request through to _request.cfm.

Any ideas on which direction I need to take to stop this from happening. I'm
having a look at the R=301 flag but no luck so far.

Thanks.

Adrian Lynch
www.halestorm.co.uk
www.adrianlynch.co.uk


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312438
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to