Forum Moderators: phranque
So I had a box on my site that encouraged people to link back to that page - except in that code I had an extra right bracket on each url! So it would look like mysite.com]
Now I found a bunch of people are linking to pages on my site with the ] and of course that results in 404s.
Anyways - I tried this redirect match rule and it's not working...Can't seem to get it.
Can anyone help me rewrite this?
RedirectMatch 301 ^/folder/[a-z0-9_-]*\]\.html$ http://www.example.com/folder/$1.html
[edited by: jdMorgan at 11:16 pm (utc) on Aug. 12, 2009]
[edit reason] example.com [/edit]
RedirectMatch 301 ^/folder/([a-z0-9_-]+)\]\.html$ http://www.example.com/folder/$1.html
Jim
I just gave it a shot, however I'm still getting a 404.
The urls have several dashes in them like [site.com...] - not sure if that could be conflicting?
We must be so close!