Tagged: Blog Pagination, duplicate content, infinite scroll
-
AuthorPosts
-
November 13, 2017 at 5:34 pm #876177
Hello all ^^
Im installing this plugin (Ajax Load More ) for add a load more button to blog or infinite scroll because google is penalizing me for duplicate content by repeating the text on every page of the blog pagination.
I configurated the plugin like the screen:
https://s7.postimg.org/62xm5s7ih/screen.pngbut it does not work at the moment. as we can see in the capture
https://s7.postimg.org/6sgei5frv/screen2.pngCan you help me please? I’ve been trying for a while, I’ve read all the threads of this topic in the forum but I can not find the solution, and I think it’s close. maybe you can help me.
Thanks- This topic was modified 6 years, 10 months ago by Jordan Shannon.
November 15, 2017 at 4:03 pm #877111Hey Ganubis,
Unfortunately, we can’t offer support for third-party plugins – so, you need to contact the plugin author.
Best regards,
John TorvikNovember 16, 2017 at 7:41 pm #877696Ok, thanks John :)
So. Is it possible to hide the content of the remaining pages? That only the blog entries appear on the other pages? 2,3,4,5 … hide everything except blog entries
Best regards
November 18, 2017 at 5:50 am #878361Hi,
I’m not sure what you meant, using Blog in ALB with pagination enabled and post number set should be enough and wouldn’t create duplicates.
Best regards,
NikkoDecember 7, 2017 at 1:53 am #885870Hi Nikko Thanks
I disable pagination to show all the content on a single page on mi blog:
Because if we put the urle with /page/2/ or placing any number, the page is always displayed the content. should show page not found.
http://www.dinosaurios.tienda/noticias-informacion-sobre-dinosaurios/page/100/
http://www.dinosaurios.tienda/noticias-informacion-sobre-dinosaurios/page/1000/
http://www.dinosaurios.tienda/noticias-informacion-sobre-dinosaurios/page/1000000/when trying to access these pages that do not exist. Should not the message “page not found” be displayed?
Thanks
Best regards,
GanuDecember 9, 2017 at 9:45 pm #886982Hi,
I had researched this issue in the past, it is a error in the way the rules are written by WordPress and happens with most themes. It has been responsible for sites being listed on Google with dozens of bad pages. At the time it was thought the next WordPress update would fix it, but apparently not. The best solution is to add this code in your .htaccess file:RedirectMatch permanent /([a-z0-9\-]+\/)[0-9\/]+ /$1
Best regards,
MikeDecember 10, 2017 at 5:23 pm #887114Hello Mike, thank you
Great, the rule works, but the load time of the page is greatly increase, the images take much longer to load, is appreciable that happens when I activate this rule in the .htaccess, some images do not load (very few) Revolution Slider too. and the blog does not finish loading. I think that in general when setting this rule I slow down the load of everything at least 20 or 30% approx. It is complicated to calculate because it is irregular in each load.
Is there any variation of this code that I can try? because in reality if it works, it just gives me problems does not load the web well, or does not finish loading
Thank you
Best regards,
GanuDecember 11, 2017 at 2:25 am #887187Hi,
That is strange, I haven’t seen this on the sites I’ve tested the rule on. I may have forgot to tell you to place the rule right after “RewriteEngine On” in your .htaccess file.
I did find another rule to try:RewriteRule ^page/(.*)$ /$1 [G]
Best regards,
MikeDecember 11, 2017 at 5:19 pm #887512editing..
- This reply was modified 6 years, 10 months ago by Astrobiologic.
December 11, 2017 at 7:36 pm #887547Hi, Mike
Like this? Example:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RedirectMatch permanent /([a-z0-9\-]+\/)[0-9\/]+ /$1
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress…
Thanks
Best regards,December 11, 2017 at 9:11 pm #887567Hi
I have tried like this:
1 – it works but slows down a lot the page, does not load it at all.# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RedirectMatch permanent /([a-z0-9\-]+\/)[0-9\/]+ /$1 RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
2 – like this: it works but (slows down the page, does not load it at all.)
#BEGIN 404 RewriteEngine On RedirectMatch permanent /([a-z0-9\-]+\/)[0-9\/]+ /$1 # END 404
3 – like this: (does nothing)
RewriteEngine On RewriteRule ^/page/$1?$ / [R=301,L]
4 – and (does nothing)
does nothingRewriteEngine On RewriteRule ^/page/([0-9]+)$ / [R=301,L]
And i have disabled all plugins to test
Any idea to try?
Thanks
Best regards
GanuDecember 13, 2017 at 9:37 pm #888559Hi,
Sorry, I don’t know why those changes are slowing down your site unless it is creating a redirect loop. Do you have other rules in your .htaccess? After adding these rules did you try saving your permalink structure again?
I see right now that “noticias-informacion-sobre-dinosaurios/page/1” redirects to “noticias-informacion-sobre-dinosaurios/”
but noticias-informacion-sobre-dinosaurios/page/10 doesn’t
Perhaps try the following rule if you want to rewrite /page/X/ to /page/ exactly. (where X is any number)RewriteRule ^page/([0-9]+)/$ http://domain.com/page/ [R=302,L]
If you want to rewrite /[anystring]/X/ to /[anystring]/ you can try
RewriteRule ^(.*)/([0-9]+)/$ http://domain.com/$1/ [R=302,L]
maybe adding the url to the redirect will help stop a redirect loop
Best regards,
MikeDecember 14, 2017 at 3:11 pm #888921Yeah! Thank you Mike! This code has worked
RewriteRule ^(.*)/([0-9]+)/$ http://domain.com/$1/ [R=302,L]
It works perfectly
Thank you very much for everything, for all the solutions. +10
Best regards
GanuDecember 15, 2017 at 12:57 am #889166Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Load More Plugin for enfold’ is closed to new replies.