Apache URL rewrite query

Posted by ant-1980 on Stack Overflow See other posts from Stack Overflow or by ant-1980
Published on 2010-05-10T00:57:01Z Indexed on 2010/05/10 1:48 UTC
Read the original article Hit count: 381

Can anyone tell me how to do this? i'm stumped!

I need a modified URL in this format

this55-is-a-test-id-23.html

But I need the 23 as a GET. I can't rely on searching for 'id' as this may occur elsewhere in the URL. Is there any way of searching for the last occurrence of id and passing that as a get using an Apache RewriteRule in .htaccess??

Many thanks

Ant

© Stack Overflow or respective owner

Related posts about apache

Related posts about rewriterule