Can anyone help me with mod rewrite? [SOLVED]
Posted: Fri Aug 06, 2010 12:00 pm
I know this is a complicated subject, but I need some help with Mod rewrite...
I have read up on the subject here:
http://www.webmasterworld.com/forum92/82.htm - its the clearest explanation I've ever been able to find... But I am still struggling.
I want to redirect:
http://www.shareworld.co.uk/index.ph...ic/7/55/1/190/
to
http://www.shareworld.co.uk/index.ph...ic/1/55/1/190/
And there are loads of pages I need to do this for, always changing the 7 to a 1, and the next two digit number will always be unique.
I have tried this:
RewriteRule \/topic\/7\/[0-9][0-9]\/1\/190\/$ \/topic/1/[0-9][0-9]/1/190/ [R=301,L]
but it does not work.
Just wondering if someone could either tell me how to do it, or perhaps give me some pointers.
Thanks
Dave
I have read up on the subject here:
http://www.webmasterworld.com/forum92/82.htm - its the clearest explanation I've ever been able to find... But I am still struggling.
I want to redirect:
http://www.shareworld.co.uk/index.ph...ic/7/55/1/190/
to
http://www.shareworld.co.uk/index.ph...ic/1/55/1/190/
And there are loads of pages I need to do this for, always changing the 7 to a 1, and the next two digit number will always be unique.
I have tried this:
RewriteRule \/topic\/7\/[0-9][0-9]\/1\/190\/$ \/topic/1/[0-9][0-9]/1/190/ [R=301,L]
but it does not work.
Just wondering if someone could either tell me how to do it, or perhaps give me some pointers.
Thanks
Dave