• I am struggling to come up with a way to do a rewrite for an old non-WP site – the old site has a bunch of news items that look like this:

    https://www.example.com/index.php?/News?item_id=123

    and I would like to try and get those news items that may still be listed somewhere on a search engine as:

    https://example.com/display_news/123/

    There are 100s of these, so although a redirect plugin seems to work for individual urls I would like a more robust solution.

    The issues I am having is with the old site using index.php in url and the fact that the new site is using WP which isn’t playing nicely as it too I believe is really putting all pages through index.php itself.

    Perhaps someone could help me work out what I need to do.

    Where I need to put this redirect? Htaccess or can I do something in functions.php that will work?

  • The topic ‘rewriterule issue’ is closed to new replies.