Title: Exclude pages and url strings
Last modified: August 20, 2016

---

# Exclude pages and url strings

 *  Resolved [DanielTulp](https://wordpress.org/support/users/danieltulp/)
 * (@danieltulp)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-404-redirected/)
 * First off, thanks for the very useful plugin and the maintenance you do on it.
   
   I do have a question though, can I exclude certain pages and url strings from
   being processed by the plugin? Would be a great feature. Where to look in the
   code.
 * Cheers,
    Daniël Tulp
 * [http://wordpress.org/extend/plugins/404-redirected/](http://wordpress.org/extend/plugins/404-redirected/)

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

 *  Thread Starter [DanielTulp](https://wordpress.org/support/users/danieltulp/)
 * (@danieltulp)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172700)
 * In /wp-content/plugins/404-redirected/includes/frontend.php
 * I added
    `if($urlParts['path'] != '/search' && $urlParts['path'] != '/search/'){`
 * in function wbz404_process404() before
    //Get URL data if it’s already in our
   database on line 65
 * this excludes the search page from being redirected
 *  [core-data-recovery](https://wordpress.org/support/users/core-data-recovery/)
 * (@core-data-recovery)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172740)
 * That worked for me as well, I’d like to put in an exclusion list.
 * Maybe they will add a feature to ignore certain things like /checkout/ or /checkout/
   pay
 * It was interfering with my woocommerce cart with a plugin called paypal advanced.
 *  [core-data-recovery](https://wordpress.org/support/users/core-data-recovery/)
 * (@core-data-recovery)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172741)
 * Don’t forget to add the extra } at the end of the function area to close the 
   if function.
 *  [Cliff Seal](https://wordpress.org/support/users/cliffseal/)
 * (@cliffseal)
 * [13 years ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172757)
 * This was just what I needed. Thanks so much for posting your solution!
 *  [Carrie](https://wordpress.org/support/users/indigohat/)
 * (@indigohat)
 * [13 years ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172758)
 * The plugin is great – but it’s redirecting my UTM links, which is messing up 
   my analytics. This was exactly what I was looking for.
 * But… where do I close the if? I put the closing bracket at the end of the function
   and it APPEARS to be working. I just want to make sure I didn’t miss something.
 *  [funreviews.net](https://wordpress.org/support/users/funreviewsnet/)
 * (@funreviewsnet)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172760)
 * I’m a little confused where this code goes, could someone post a snippet of this
   code inside where it’s supposed to go, please?
 * Also, I totally need this so THANK YOU for posting this- however, I need to exclude
   way more than one directory…how can I add other directories as well?
 * Thanks again!
    -gw
 *  [MikeySmithy](https://wordpress.org/support/users/mikeysmithy/)
 * (@mikeysmithy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172763)
 * Hi guys,
 * just ran into something similar (problem with using parameters).
 * Please check out this related topic:
    [http://wordpress.org/support/topic/how-to-ignore-certain-url-parameters-pe-homeparametertest](http://wordpress.org/support/topic/how-to-ignore-certain-url-parameters-pe-homeparametertest)
 * Does anyone have a solution?

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

The topic ‘Exclude pages and url strings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/404-redirected.svg)
 * [Redirectioner](https://wordpress.org/plugins/404-redirected/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/404-redirected/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/404-redirected/)
 * [Active Topics](https://wordpress.org/support/plugin/404-redirected/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/404-redirected/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/404-redirected/reviews/)

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)

 * 7 replies
 * 6 participants
 * Last reply from: [MikeySmithy](https://wordpress.org/support/users/mikeysmithy/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-404-redirected/#post-3172763)
 * Status: resolved