Group Admins

WordPress Troubleshooting and Support

Public Group active 1 year, 1 month ago ago

WordPress support from our community

turn off search

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #3056
    Vincent Gentile

    Hello WPNYC – My client is upset that when a user types in his domain and a couple letters after the domain (i.e. – wordpress will find a related page on his site and bring that up…? Is this something new, I though it would go to a page not found….?

    He has hidden pages that he doesn’t want people to easily get to and he doesn’t want to password protect the…?

    Vincent Gentile

    Found a solution – added this code to functions.php

    add_filter(‘redirect_canonical’, ‘stop_guessing’);
    function stop_guessing($url) {
    if (is_404()) {
    return false;
    return $url;


    Nice tip! Thanks for letting us know.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.