Title: Query Strings causing 404 errors
Last modified: March 22, 2019

---

# Query Strings causing 404 errors

 *  Resolved [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/query-strings-causing-404-errors/)
 * I have picked up a site that is redirecting links from a Zencart website to the
   new urls on a WooCommerce site. Because of the way the redirects were entered
   by the original developer adding the query strings from the “Redirect From” URL
   is causing the redirects to 404.
 * This example results in a 404 error.
    From: [http://www.modarmory.com/index.php?main_page=product_info&cPath=106&products_id=1078](http://www.modarmory.com/index.php?main_page=product_info&cPath=106&products_id=1078)
   To: [http://www.modarmory.com/?product=z-bolt-green-laser-system-btmk-2s](http://www.modarmory.com/?product=z-bolt-green-laser-system-btmk-2s)
   Redirect to: [http://www.modarmory.com/?product=z-bolt-green-laser-system-btmk-2s?main_page=product_info&cpath=106&products_id=1078](http://www.modarmory.com/?product=z-bolt-green-laser-system-btmk-2s?main_page=product_info&cpath=106&products_id=1078)
 * I know we can go back and change the several hundred redirects to remove the 
   query string structure in the “Redirect To” field but it is going to take a lot
   of time and ultimately we don’t need the query strings for any of the redirects
   that have been setup.
 * Another example is
    From: [http://www.modarmory.com/index.php?main_page=contact_us](http://www.modarmory.com/index.php?main_page=contact_us)
   To: [http://modarmory.com/contact-us/](http://modarmory.com/contact-us/) Redirect
   to: [http://www.modarmory.com/contact-us/?main_page=contact_us](http://www.modarmory.com/contact-us/?main_page=contact_us)
 * Is there a solution for this? Would it be possible to add a checkbox option on
   the redirects to include the query strings. It could default to on so it would
   be backward compatible but we could turn it off where it isn’t needed.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fquery-strings-causing-404-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/query-strings-causing-404-errors/#post-11345701)
 * Hi,
    Adding the option for query strings you suggested is indeed possible, but
   I can’t promise you any dates 🙁 We maintain a lot of plugins, and there are 
   only so many hours in the day.
 * Please email us on support(at)webfactoryltd.com referencing this thread, and 
   the guys will have a look if they can get you a custom version or some similar
   workaround.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/query-strings-causing-404-errors/#post-11345837)
 * Thanks for the quick reply! Will drop you an email.
 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/query-strings-causing-404-errors/#post-11346967)
 * Got it 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Query Strings causing 404 errors’ is closed to new replies.

 * ![](https://ps.w.org/eps-301-redirects/assets/icon-256x256.png?rev=2413221)
 * [301 Redirects - Redirect Manager](https://wordpress.org/plugins/eps-301-redirects/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eps-301-redirects/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eps-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/eps-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eps-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eps-301-redirects/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WebFactory](https://wordpress.org/support/users/webfactory/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/query-strings-causing-404-errors/#post-11346967)
 * Status: resolved