Title: rewriterule issue
Last modified: August 22, 2016

---

# rewriterule issue

 *  [dnawp](https://wordpress.org/support/users/dnawp/)
 * (@dnawp)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/rewriterule-issue/)
 * 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:
 *     ```
       http://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:
 *     ```
       http://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.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [rewriterule](https://wordpress.org/support/topic-tag/rewriterule/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dnawp](https://wordpress.org/support/users/dnawp/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/rewriterule-issue/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
