-
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
-
Alvind
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
-
Alvind
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?
-
Alvind
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?
-
Alvind
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.
-
Alvind
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
-
Alvind
Let us know 😀
-
rob33
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?
-
rob33
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 BLOCKI’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
-
Alvind
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?
- You must be logged in to reply to this topic.