Support » Plugins and Hacks » 404 Redirected » [Resolved] Exclude pages and url strings

[Resolved] Exclude pages and url strings

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    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.

    Don’t forget to add the extra } at the end of the function area to close the if function.

    This was just what I needed. Thanks so much for posting your solution!

    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.

    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!

    Hi guys,

    just ran into something similar (problem with using parameters).

    Please check out this related topic:

    Does anyone have a solution?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Exclude pages and url strings’ is closed to new replies.