Google Groups Home
Help | Sign in
matching end of url
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
farouk.alhassan@googlemai l.com  
View profile
 More options Jul 4, 3:15 pm
From: "farouk.alhas...@googlemail.com" <osbert252...@yahoo.com>
Date: Fri, 4 Jul 2008 12:15:17 -0700 (PDT)
Local: Fri, Jul 4 2008 3:15 pm
Subject: matching end of url
In my application, my styles are in /images and css in /css

because of the many redirects and urlrewrites, it is difficult to
anticipate the url structure. I want to know how I can catch all urls
that contain /images/ and just forward it. this is what i am writing
but it is not working

    <rule match-type="wildcard">
        <from>/(.*)/images/(.*)</from>
        <to type="redirect" last="true">/images/$2</to>
    </rule>

    <rule match-type="wildcard">
        <from>^/images/*</from>
        <to last="true">/images/$1</to>
    </rule>

i want to catch urls like http://localhost:6060/lalpac/images/but_1.jpg
and

http://localhost:6060/lalpac/pr/lk/images/but_1.jpg


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
daniel@calgoo  
View profile
 More options Jul 8, 11:51 am
From: "daniel@calgoo" <dan...@calgoo.com>
Date: Tue, 8 Jul 2008 08:51:02 -0700 (PDT)
Local: Tues, Jul 8 2008 11:51 am
Subject: Re: matching end of url
I think I just did this.  I only used one rule per css/image/js folder
though.  See if this helps:

    <rule>
        <from>/(.*)/images/(.*)</from>
        <to type="redirect">%{context-path}/images/$2</to>
    </rule>

On Jul 4, 12:15 pm, "farouk.alhas...@googlemail.com"


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google