Re: help with a rewrite rule

2010-12-11 Thread Dominic Watson

We are ignoring certain types of files this exact way. Have you tried
stripping out all the other rules but the scripts ignore one? i.e. to debug,
make your entire rewrite script look like this:

RewriteEngine on
RewriteRule ^/scripts/(.*)$ /scripts/testing/$1 [I,R=301]
# i.e. the rule above should redirect anything under scripts to
/scripts/testing/(whatever you were after).

Then, if that is working, make your script look like this and test that the
scripts stuff goes where it should before adding the other rules below it:

RewriteEngine on
RewriteRule ^/scripts/(.*)$ /scripts/$1 [I,L]

AFAIK, the rule above should work.

HTH

Dominic

On 10 December 2010 22:28, Mark A. Kruger mkru...@cfwebtools.com wrote:


 Nope... no dice...


 http://www.classicindustries.com/scripts/admin_newProductscarline.js

 Notice the P is upper case. When you fire this in a browser it does a 301
 and redirects to the this

 http://www.classicindustries.com/scripts/admin_newproductscarline.js

 I put my rule above the rule for lower case rewrite.


 #- IGNORE DIRECTORIRES -
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d

 #--- this rule should process and then stop right?

 #- ignore scripts dir-
 #RewriteRule (?!/scripts.*) [L]
 #RewriteRule ^/scripts(.+)$ /scripts$1 [L]
 RewriteRule ^/scripts/(.*)  /scripts/$1  [L]

 #--- but instead this rule is firing and redirecting. So perhaps its simply
 not firing eh?

 #- FORCE LOWERCASE -
 RewriteMap  lc int:tolower
 RewriteCond %{REQUEST_URI} [A-Z]
 RewriteRule (.*) ${lc:$1} [R=301,L]

 subscribe.cfm



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340009
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: help with a rewrite rule

2010-12-10 Thread Mark A. Kruger

Ok... I tried the following:

RewriteRule (?!/scripts.*) [L]

But instead of ignoring it it actually redirecte to [L] ... so it's
rewriting to blank eh?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 10:54 AM
To: cf-talk
Subject: help with a rewrite rule


Rewrite gurus and afficianados,

 

I have the following rewrite rule (uses helicon)..

 

RewriteEngine on

 

#- IGNORE DIRECTORIRES -

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

#- FORCE LOWERCASE -

RewriteMap  lc int:tolower

RewriteCond %{REQUEST_URI} [A-Z]

RewriteRule (.*) ${lc:$1} [R=301,L]

 

 

The Force lower case rule is wreaking havoc with Ajax CFC POST requests.
It redirects them and (naturally) loses the post data. 

 

I need a rule to exclude CFCs from further rewrite rules.  Can someone
help?  

 

-Mark

 

Mark A. Kruger, MCSE, CFG

(402) 408-3733 ext 105

Skype: markakruger

 http://www.cfwebtools.com www.cfwebtools.com

 http://www.coldfusionmuse.com www.coldfusionmuse.com

 http://www.necfug.com/ www.necfug.com

 

 






~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339985
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: help with a rewrite rule

2010-12-10 Thread Mark A. Kruger

So maybe...

RewriteRule (?!/scripts.*)  /scripts.*  [L]

??

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 11:22 AM
To: cf-talk
Subject: RE: help with a rewrite rule


Ok... I tried the following:

RewriteRule (?!/scripts.*) [L]

But instead of ignoring it it actually redirecte to [L] ... so it's
rewriting to blank eh?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 10:54 AM
To: cf-talk
Subject: help with a rewrite rule


Rewrite gurus and afficianados,

 

I have the following rewrite rule (uses helicon)..

 

RewriteEngine on

 

#- IGNORE DIRECTORIRES -

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

#- FORCE LOWERCASE -

RewriteMap  lc int:tolower

RewriteCond %{REQUEST_URI} [A-Z]

RewriteRule (.*) ${lc:$1} [R=301,L]

 

 

The Force lower case rule is wreaking havoc with Ajax CFC POST requests.
It redirects them and (naturally) loses the post data. 

 

I need a rule to exclude CFCs from further rewrite rules.  Can someone
help?  

 

-Mark

 

Mark A. Kruger, MCSE, CFG

(402) 408-3733 ext 105

Skype: markakruger

 http://www.cfwebtools.com www.cfwebtools.com

 http://www.coldfusionmuse.com www.coldfusionmuse.com

 http://www.necfug.com/ www.necfug.com

 

 








~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339987
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: help with a rewrite rule

2010-12-10 Thread Mark A. Kruger

Anyone? 


-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 11:28 AM
To: cf-talk
Subject: RE: help with a rewrite rule


So maybe...

RewriteRule (?!/scripts.*)  /scripts.*  [L]

??

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 11:22 AM
To: cf-talk
Subject: RE: help with a rewrite rule


Ok... I tried the following:

RewriteRule (?!/scripts.*) [L]

But instead of ignoring it it actually redirecte to [L] ... so it's
rewriting to blank eh?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 10:54 AM
To: cf-talk
Subject: help with a rewrite rule


Rewrite gurus and afficianados,

 

I have the following rewrite rule (uses helicon)..

 

RewriteEngine on

 

#- IGNORE DIRECTORIRES -

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

#- FORCE LOWERCASE -

RewriteMap  lc int:tolower

RewriteCond %{REQUEST_URI} [A-Z]

RewriteRule (.*) ${lc:$1} [R=301,L]

 

 

The Force lower case rule is wreaking havoc with Ajax CFC POST requests.
It redirects them and (naturally) loses the post data. 

 

I need a rule to exclude CFCs from further rewrite rules.  Can someone
help?  

 

-Mark

 

Mark A. Kruger, MCSE, CFG

(402) 408-3733 ext 105

Skype: markakruger

 http://www.cfwebtools.com www.cfwebtools.com

 http://www.coldfusionmuse.com www.coldfusionmuse.com

 http://www.necfug.com/ www.necfug.com

 

 










~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339991
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: help with a rewrite rule

2010-12-10 Thread Michael Grant

Bueller.

On Fri, Dec 10, 2010 at 1:25 PM, Mark A. Kruger mkru...@cfwebtools.comwrote:


 Anyone?


 -Original Message-
 From: Mark A. Kruger [mailto:mkru...@cfwebtools.com]
 Sent: Friday, December 10, 2010 11:28 AM
 To: cf-talk
 Subject: RE: help with a rewrite rule


 So maybe...

 RewriteRule (?!/scripts.*)  /scripts.*  [L]

 ??

 Mark A. Kruger, MCSE, CFG
 (402) 408-3733 ext 105
 Skype: markakruger
 www.cfwebtools.com
 www.coldfusionmuse.com
 www.necfug.com



 -Original Message-
 From: Mark A. Kruger [mailto:mkru...@cfwebtools.com]
 Sent: Friday, December 10, 2010 11:22 AM
 To: cf-talk
 Subject: RE: help with a rewrite rule


 Ok... I tried the following:

 RewriteRule (?!/scripts.*) [L]

 But instead of ignoring it it actually redirecte to [L] ... so it's
 rewriting to blank eh?

 Mark A. Kruger, MCSE, CFG
 (402) 408-3733 ext 105
 Skype: markakruger
 www.cfwebtools.com
 www.coldfusionmuse.com
 www.necfug.com



 -Original Message-
 From: Mark A. Kruger [mailto:mkru...@cfwebtools.com]
 Sent: Friday, December 10, 2010 10:54 AM
 To: cf-talk
 Subject: help with a rewrite rule


 Rewrite gurus and afficianados,



 I have the following rewrite rule (uses helicon)..



 RewriteEngine on



 #- IGNORE DIRECTORIRES -

 RewriteCond %{REQUEST_FILENAME} !-f

 RewriteCond %{REQUEST_FILENAME} !-d



 #- FORCE LOWERCASE -

 RewriteMap  lc int:tolower

 RewriteCond %{REQUEST_URI} [A-Z]

 RewriteRule (.*) ${lc:$1} [R=301,L]





 The Force lower case rule is wreaking havoc with Ajax CFC POST requests.
 It redirects them and (naturally) loses the post data.



 I need a rule to exclude CFCs from further rewrite rules.  Can someone
 help?



 -Mark



 Mark A. Kruger, MCSE, CFG

 (402) 408-3733 ext 105

 Skype: markakruger

  http://www.cfwebtools.com www.cfwebtools.com

  http://www.coldfusionmuse.com www.coldfusionmuse.com

  http://www.necfug.com/ www.necfug.com














 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339992
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: help with a rewrite rule

2010-12-10 Thread Mark A. Kruger

Maybe I need:

RewriteCond  something...

Followed by 

RewriteRule (?!/scripts.*)  /scripts.*  [L]   ... I just don't want it to do
anything at all... I just want it to STOP processing if the file is in the
scripts directory.. how hard is that?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 12:25 PM
To: cf-talk
Subject: RE: help with a rewrite rule


Anyone? 


-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 11:28 AM
To: cf-talk
Subject: RE: help with a rewrite rule


So maybe...

RewriteRule (?!/scripts.*)  /scripts.*  [L]

??

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 11:22 AM
To: cf-talk
Subject: RE: help with a rewrite rule


Ok... I tried the following:

RewriteRule (?!/scripts.*) [L]

But instead of ignoring it it actually redirecte to [L] ... so it's
rewriting to blank eh?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 10:54 AM
To: cf-talk
Subject: help with a rewrite rule


Rewrite gurus and afficianados,

 

I have the following rewrite rule (uses helicon)..

 

RewriteEngine on

 

#- IGNORE DIRECTORIRES -

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

#- FORCE LOWERCASE -

RewriteMap  lc int:tolower

RewriteCond %{REQUEST_URI} [A-Z]

RewriteRule (.*) ${lc:$1} [R=301,L]

 

 

The Force lower case rule is wreaking havoc with Ajax CFC POST requests.
It redirects them and (naturally) loses the post data. 

 

I need a rule to exclude CFCs from further rewrite rules.  Can someone
help?  

 

-Mark

 

Mark A. Kruger, MCSE, CFG

(402) 408-3733 ext 105

Skype: markakruger

 http://www.cfwebtools.com www.cfwebtools.com

 http://www.coldfusionmuse.com www.coldfusionmuse.com

 http://www.necfug.com/ www.necfug.com

 

 












~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: help with a rewrite rule

2010-12-10 Thread Mark A. Kruger

Come on folks... someone has to be know this... 

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 1:24 PM
To: cf-talk
Subject: RE: help with a rewrite rule


Maybe I need:

RewriteCond  something...

Followed by 

RewriteRule (?!/scripts.*)  /scripts.*  [L]   ... I just don't want it to do
anything at all... I just want it to STOP processing if the file is in the
scripts directory.. how hard is that?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 12:25 PM
To: cf-talk
Subject: RE: help with a rewrite rule


Anyone? 


-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 11:28 AM
To: cf-talk
Subject: RE: help with a rewrite rule


So maybe...

RewriteRule (?!/scripts.*)  /scripts.*  [L]

??

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 11:22 AM
To: cf-talk
Subject: RE: help with a rewrite rule


Ok... I tried the following:

RewriteRule (?!/scripts.*) [L]

But instead of ignoring it it actually redirecte to [L] ... so it's
rewriting to blank eh?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Friday, December 10, 2010 10:54 AM
To: cf-talk
Subject: help with a rewrite rule


Rewrite gurus and afficianados,

 

I have the following rewrite rule (uses helicon)..

 

RewriteEngine on

 

#- IGNORE DIRECTORIRES -

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

#- FORCE LOWERCASE -

RewriteMap  lc int:tolower

RewriteCond %{REQUEST_URI} [A-Z]

RewriteRule (.*) ${lc:$1} [R=301,L]

 

 

The Force lower case rule is wreaking havoc with Ajax CFC POST requests.
It redirects them and (naturally) loses the post data. 

 

I need a rule to exclude CFCs from further rewrite rules.  Can someone
help?  

 

-Mark

 

Mark A. Kruger, MCSE, CFG

(402) 408-3733 ext 105

Skype: markakruger

 http://www.cfwebtools.com www.cfwebtools.com

 http://www.coldfusionmuse.com www.coldfusionmuse.com

 http://www.necfug.com/ www.necfug.com

 

 














~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:33
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: help with a rewrite rule

2010-12-10 Thread denstar

Might need to escape that slash:

RewriteRule ^\/scripts\/(.*)  /scripts/$1  [L]


On Fri, Dec 10, 2010 at 2:41 PM, denstar valliants...@gmail.com wrote:
 I would think it would be something like this:

 RewriteRule ^/scripts/(.*)  /scripts/$1  [L]

 That's Apache style, but they're similar, right?

 HIH!

 :Den

 --
 The omission of good is no less reprehensible than the commission of evil.
 Plutarch

 On Fri, Dec 10, 2010 at 2:30 PM, Mark A. Kruger wrote:

 Come on folks... someone has to be know this...


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:34
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: help with a rewrite rule

2010-12-10 Thread denstar

I would think it would be something like this:

RewriteRule ^/scripts/(.*)  /scripts/$1  [L]

That's Apache style, but they're similar, right?

HIH!

:Den

-- 
The omission of good is no less reprehensible than the commission of evil.
Plutarch

On Fri, Dec 10, 2010 at 2:30 PM, Mark A. Kruger wrote:

 Come on folks... someone has to be know this...


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340002
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: help with a rewrite rule

2010-12-10 Thread Mark A. Kruger

They are very similar... I'll give this a shot... thanks.

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: denstar [mailto:valliants...@gmail.com] 
Sent: Friday, December 10, 2010 3:41 PM
To: cf-talk
Subject: Re: help with a rewrite rule


I would think it would be something like this:

RewriteRule ^/scripts/(.*)  /scripts/$1  [L]

That's Apache style, but they're similar, right?

HIH!

:Den

-- 
The omission of good is no less reprehensible than the commission of evil.
Plutarch

On Fri, Dec 10, 2010 at 2:30 PM, Mark A. Kruger wrote:

 Come on folks... someone has to be know this...




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340005
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: help with a rewrite rule

2010-12-10 Thread Mark A. Kruger

Nope... no dice... 


http://www.classicindustries.com/scripts/admin_newProductscarline.js

Notice the P is upper case. When you fire this in a browser it does a 301
and redirects to the this

http://www.classicindustries.com/scripts/admin_newproductscarline.js

I put my rule above the rule for lower case rewrite.


#- IGNORE DIRECTORIRES -
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#--- this rule should process and then stop right?

#- ignore scripts dir-
#RewriteRule (?!/scripts.*) [L]
#RewriteRule ^/scripts(.+)$ /scripts$1 [L]
RewriteRule ^/scripts/(.*)  /scripts/$1  [L]

#--- but instead this rule is firing and redirecting. So perhaps its simply
not firing eh?

#- FORCE LOWERCASE -
RewriteMap  lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

subscribe.cfm



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340006
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm