Thank you Kay for suggesting this. It has done the trick. I'm really glad I 
don't have to change every single link on the site.

I have another nagging problem and would appreciate anybody's help. I'll try to 
explain as best as I can.

I want to a RewriteRule that can do the following:

I have a rule that translates: 

http://mysite/index.cfm?offers.books&bookid=1 

to:

http://mysite/offers/books/Harry-Potter

And the rule that does this is: 
RewriteRule /offers(/books/.*) /index.cfm?go=offers.details&bookid=${mapfile:$1}

The mapfile.txt file contains the "book keyword" and "bookid", ex:
/books/Harry-Potter  1

and a rule that translates:

http://mysite/index.cfm?go=books.all

to:

http://mysite/offers/books/all

And the rule that does this is: 
RewriteRule /offers/books/([a-zA-Z0-9.-]+)(.*) /index.cfm?go=offers\.$1 [PT]

Here's the problem: When I try to browse this page: 
"http://mysite/offers/books/all"; the browser gets confused because the regular 
expression pattern for both the rules have the same pattern i.e 
"/offers/books/". I hope this is making sense. I want to change my rule which 
works in both the cases.

Thanks in advance.

Regards,
cfcoder

> On Fri, Feb 29, 2008 at 1:46 AM, cf coder <[EMAIL PROTECTED]
> com> wrote:
> >  however none of the images on this page get displayed. I looked at 
> an image property and the src which had the following src: 
> http://mysite/offers/books/images/bookimage/somebook.gif
> >  I want it to be
> >  http://mysite/images/bookimage/somebook.gif
> 
> Try <base href="http://mysite/"; /> (in the head of your document).
> That will cause all css, js, image and links on the page to use
> http://mysite/ as the base of relative requests.
> 
> -- 
> Kay Smoljak
> business: www.cleverstarfish.com
> standards: kay.zombiecoder.com
> coldfusion: kay.smoljak.com
> personal: goatlady.wordpress.
com 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300163
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