For some odd reason, I'm getting the following urls in my wordpress install. Apparently, a plugin hosed the database and after many days of research and trial / error, I'm still at a standstill.
I'm hoping someone can help me with how to configure this.
I get incoming requests for webpages like:
Problem 1:
http://example.com/?/post-name and it needs to be rewritten to redirect to http://example.com/post-name/
(Remove the "/?/" in the url)
Problem 2:
http://example.com/[4 digit number/[2 digit number/post-name needs to be redirected to: http://example.com/post-name/
(remove all the digits and accompanying slashes prior to post-name)
Problem 3:
http://example.com/[4 digit number/[2 digit number/[2 digit number]/post-name needs to be redirected to: http://example.com/post-name/
(remove all the digits and accompanying slashes prior to post-name)
Problem 4:
http://example.com/post-name/none needs to be redirected to http://example.com/post-name/
(removing the "none" at the end of the request).
Anybody have any ideas? I'm just horrible @ regex.
TIA