I am currently trying to redirect all domains follow this structure: http://www.domain.com/ad/lorem/ipsum/calor/3/ To redirect to: http://www.domain.com/ad/3/ Here's what I have: RedirectMatch 301 ^ad/([^./]+)/([^./]+)/([^./]+)/([^./]+)/\$ http://www.domain.com/ad/$4 Code (markup): It doesn't seem to work - any help? Thanks!
If you're not sure how to find out, put this: <IfModule mod_rewrite.c> (your code here) </IfModule> Code (markup): around your redirect code and let us know what you get as output.