D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] apache mod_rewrite

 

On 15/11/13 10:51, Simon Waters wrote:
I'm thinking you want groups of charatcters which are "not /"  rather than  ".*" so more like:


RewriteRule ^/store/([^/]*)/([^/]*)$    /store.php?id=$1

As regular expressions are greedy.

Haven't checked it, but it fits the symptoms fairly well.
Many thanks... (and Anthony) That was what I needed.
I thought it with to do with greedy regexp but couldn't think of a decent solution.

-- 
'ooroo

Stinga...(:)-)
---------------------------------------------------
Email: stinga+dclug@xxxxxxxxxxxxx   o
You need only two tools.        o /////
A hammer and duct tape. If it    /@   `\  /) ~
doesn't move and it should use  >  (O)  X<  ~  Fish!!
the hammer. If it moves and      `\___/'  \) ~
shouldn't, use the tape.           \\\
---------------------------------------------------
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq