Viewing 2 replies - 1 through 2 (of 2 total)
  • P.S I apologise I pressed submit too quickly.. and didn’t realise I only put ‘Redirect’ in the title (I can’t seem to change this either) 🙁

    Zabius,
    The plugin could work for what you are trying to do, but I don’t think it is a good solution as you would have to manually enter every old post and the new url into the plugin – and that is a big waste of time. The plugin does not have a way to use regular expressions in the request check, so that is out of the question.

    As for htaccess, I am not an expert, but if you want to redirect the entire news item requests, you could add this to your htaccess file before the wordpress added items:
    RewriteRule ^news/(.*)$ /blog/$1 [L,R=301,NC]

    In your example, you show a number on the end of the request URL and not on the end of the redirected URL, I am only assuming this is the post id. If it is and it is not on the new blog urls, you may need to use something like this instead – as it will strip the post id off the end:
    RewriteRule ^news/(.*)(-[0-9]+)$ /blog/$1 [L,R=301,NC]

    Good luck.
    Don

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect’ is closed to new replies.