Archived topic
Multiple Home Pages
8 replies · Started by Mouse on September 27, 2020
Hi there, I am having a bit of issue here ...
Google has started indexing all of the pages like
https://home page .com/page/1 ....2..... any number...
I have removed many of them manually.. but I have to fix the main problem... I dont want https://home.com/page/ any page.
Please help.
Hi there,
/page/# are generated by WordPress for any paginated page. This is not something the theme is in control.
Similarly I can see https://homepage.com/; this page is also getting indexed on Google... which makes no sense, how these pages are being made
But the homepage is just a page generated like any other... I dont see other pages like for example the about us page to be like that /page/2 3 4 .... so why homepage... ?
The theme has no control over pagination and permalinks that is a core WP function.
And WP should not be generating pagination if you're not on a paginated archive or page. So some other plugin / custom function is interfering with that. You would need to find which plugin/code is creating the issue.
I have blocked all plugins and theme functions is the same that came with the theme as default... other than css code to make the header sticky I added no other code.
As David mentioned, these things are completely handled by WordPress itself - meaning that you would get the exact same issue when using a twenty series default theme.
I would recommend checking with WordPress support team and see if they've seen similar issues before.
Yes I understand. Is there a way to redirect all these pages to only one page for the case of homepage?
I mean /page/2 3 4 ….https://homepage.com/page/9223372036854775807/ (cz this is the limit)
Can we do something like that... ?
Not within the theme.
You would have to setup redirection within WordPress.
Maybe a plugin like this?
https://en-ca.wordpress.org/plugins/redirection/