Archived topic
Remove Specific Pagination Pages
3 replies · Started by SAGAR on November 9, 2022
Hi,
I have created a static page for my homepage. But when I search mydomain.com/page/2/ it shows the static page only. I want to show mydomain.com/page/2/. And also when I remove the static page from the customize option and change it to the latest posts, everything is fine. How can I do that?
For Google crawlers, All these pagination pages show the same content (static page). if this is not possible, then I want all these pages to show 404 errors, when both Google and Human visit the below links.
https://www.domain.com/page/2/
https://www.domain.com/page/3/
https://www.domain.com/page/4/
https://www.domain.com/page/44/
https://www.domain.com/page/94/
Best Regards,
Sagar
Hi there,
I am not sure on this, as GP has no control over permalinks, pagination or redirection.
If google is indexing paged links https://www.domain.com/page/2/ on the home page, when none exist. I assume that previously the home page was set to show the Latest posts. If thats the case then no-indexing or redirection would be required.
Are you using any SEO plugins as those generally handle no-indexing and redirection.
If not the alternative would be to use a Redirect plugin or do some htaccess rewrites.
Hi,
What is the single .htaccess rewrite code to redirect all below and similar other pagination pages to home page.
https://www.domain.com/page/2/
https://www.domain.com/page/3/
https://www.domain.com/page/4/
https://www.domain.com/page/44/
https://www.domain.com/page/94/
I don't have the answer for that, htaccess and regex is not my area of expertise.
You would need to ask that kind of question on StackExchange.