Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Unable to locate strange redirects

  • Hi,

    I’m going through my page indexing errors on G search console and I’m seeing a number of redirects which I can’t locate, either being set up in my 301 redirect plugin or in my cpanel hosting.

    Take https://menspleasures.com/page/5/

    If I delete this it deletes my homepage but my HP slug isn’t https://menspleasures.com/page/5/, its just https://menspleasures.com.

    There are 75 of them.

    Tks, have included viewable link

  • Hi there,

    Have you implemented any custom PHP functions that could be affecting how the URL behaves?

  • Hi Alvind,

    The only PHP related plugins I see is Code Snippets.

    Regarding if I have implemented any custom PHP functions, I’m not sure.

    What would they look like pls and where would they be located?

    Tks

  • In the Code Snippets > All snippets section, you should be able to see if there is any PHP code added there.

    If you want me to take a look, you can provide your site’s login credentials inside the Private Information field.

  • Brilliant, thank you, pls find enclosed

  • Hi, do you still need access?

  • Sorry, for some reason, your previous reply slipped from our system.

    I’ve taken a look at your snippets, but there doesn’t seem to be anything related to the issue.

    Have you checked the .htaccess file in your file system? Perhaps there is something there that has to do with the redirection.

  • What am I looking for specifically in the htaccess file – somekind of php redirect link?

  • It’s not PHP, see if there is something in there with Redirect keyword.

  • Having spoke to Namecheap they state: These redirects are not set up on the server side. They are related to the internal WordPress configuration or get redirected by a specific plugin of your website.

    I have checked htaccess, not much there, no “redirect” text there.

  • In that case, could you do this: deactivate all plugins except GP Premium. Then try accessing this link to see if it’s still accessible: https://menspleasures.com/page/5/

    If it’s not, then it’s definitely caused by one of the plugins. Afterward, we can reactivate them one by one to check which plugin is the culprit.

  • pls allow bit of time

  • Let us know 😀

  • Hi, apologies for delay again, it’s also been painfully slow in wordpress.

    I have been through each plugin individually and the redirects remain.

    Very strange.

    Where else do you think might they be hiding?

  • I believe altering robot.txt will disallow redirects from being indexed.

    My robot.txt file looks like thos:

    User-agent: *
    Disallow: /wp-admin/

    Although mywebsite/robot.text file looks like this:

    # START YOAST BLOCK
    # —————————
    User-agent: *
    Disallow:

    Sitemap: https://mysite.com/sitemap_index.xml
    # —————————
    # END YOAST BLOCK

    I’ve read that adding a command after “Disallow:” will stop google trying to index redirects.

    Do you know what this command might be?

    Is it:

    Disallow: /redirects/ ?

    tks

  • I’m not sure about using redirects in the robots.txt file as I have very little knowledge about that.

    So I’ve just re-inspect your site – those home page with /page/# URLs – I can see in the developers tools network tab it’s returning a 200 response header.

    They seem to be like soft 404s, where WordPress attempts pagination but falls back to the root page, which is the Home page in this case.

    I am not sure how Google found them. Could have been an old external link that got shared? Perhaps back when maybe the site had a paginated home page?

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