Hmm so what is your best way to do it? I am not an SEO expert, so any tips are welcome =)
Lester Chan
I, too, am not an expert in SEO, and programming. But I think that Google has no reason to see the code as a reference, it means that you have to hide from Google. How this can be done only knows programmer. All hope for you 🙂
I was offered this option:
if($postratings_custom) {
for($i = 1; $i <= $postratings_max; $i++) {
$postratings_javascript .= 'var ratings_'.$i.'_mouseover_image=new Image();ratings_'.$i.'_mouseover_image.src=ratingsL10n.plugin_url+"/"+"images"+"/"+ratingsL10n.image+"/"+"rating_'.$i.'_over."+ratingsL10n.image_ext;';
}
} else {
$postratings_javascript = 'var ratings_mouseover_image=new Image();ratings_mouseover_image.src=ratingsL10n.plugin_url+"/"+"images"+"/"+ratingsL10n.image+"/"+"rating_over."+ratingsL10n.image_ext;';
}
I would like to hear your opinion. As long as I’m saving that’s it:
.htaccess
User-agent: *
Disallow: /images/
Disallow: /rating_over*
But the option htaccess is a bad decision.
I would recommend htaccess also. I am not sure why you say htaccess is a bad decision. I have a lot of htaccess options to disallow crawling certain WP files like wp-admin etc.
Lester Chan
1) images folder is very widespread. And indexing lock may result in the search engine penalties.
2) the WordPress Users often ordinary people (not programmers). They will not make additional entries in the .htaccess.
The result of this are thousands of “404” pages indexed search engine Google. Enter a query «rating_over» in Google, I was struck by the magnitude of the problem.
3) You are a very popular designer and I am sure that your knowledge and experience will be enough to fix the problem at the code level.
Still, the plugin does for people on a “set and forget”.
This is a question related to users who are not programmers. It is a matter of reputation.
1) You can whitelist specific. /wp-content/plugins/wp-postratings/images/* in this case it is targeted.
2) Agreed
3) Thanks for the compliments. I am not a SEO guy, so generally I don’t really give much thought to SEO. Unless you or someone can guarantee it will solve that problem, I will add it in.
Не совсем понял первое предложение. Google пытается перейти по ссылкам:
example.com\images\
example.com\rating_over
А у пользователей могут быть папки wp-content\images; wp-content\<date>\images и так далее
Данная структура не является официальной, но она может быть создана на усмотрение пользователя или каким нибудь другим плагином.
В конце концов \images\ может быть частью ссылки.
Потому я считаю это решение очень плохим:
.htaccess
User-agent: *
<strong>Disallow: /images/</strong>
Disallow: /rating_over*
Оно слишком глобальное.
Не будучи программистом я могу лишь предложить переименовать папку images в wp-PostRatings-images и соответственно
.htaccess
User-agent: *
Disallow: /wp-PostRatings-images/
Disallow: /rating_over*
В этом случае блокировка лишнего практически исключена.
I do not quite understand the first sentence. Google is trying to go to the links:
example.com\images\
example.com\rating_over
And users can be the folder wp-content\images; wp-content\<date>\images, and so on
This structure is not official, but it can be created on the discretion of the user or by any other plugin.
In the end, \images\ can be a part of the reference.
Because I think this decision is very bad:
...
Disallow: /images/
...
It is too global.
Not being a programmer, I can only suggest to rename the folder images in wp-PostRatings-images and accordingly
.htaccess
User-agent: *
Disallow: /wp-PostRatings-images/
Disallow: /rating_over*
In this case, excess blocking is almost excluded.
This is no serious answer for this issue.
The issue is that path is not good formed:
1ª.- mipaginaURL/images/ –> bad path created
2ª.- mipaginaURL/rating_over –> bad path created
in fact the files exist, and Googlebot ALLOW them, if path is:
mipaginaURL/ wp-content/plugins/postratings/images/ –> googlebot Allow
mipaginaURL/ wp-content/plugins/postratings/rating_over –> googlebot Allow
artandscores
The solution works with robots.txt. It’s better than nothing.
User-agent: *
Disallow: /images/
Disallow: /rating_over*
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Developer asks for help. Maybe place a question here http://stackoverflow.com. My poor knowledge of the English language does not allow to do it …
-
This reply was modified 9 years, 4 months ago by
ikiterder.
I think I might have solve it, try the dev version https://github.com/lesterchan/wp-postratings/archive/master.zip, replace all the files on your server.
What I did was to use the server to generate the full path rather than using JS
Curiosity is google search console says, into PC: url not found = 0 ; into Smartphone: url not found = 0.
dominio.com/images/
dominio.com/rating_over
Just i,ve done:
1. grabed as Solved, into google search console
2. deleted from host archive: wp-postratings
3. upload ftp archive “wp-postratings” that Lester Chan gave before
let´s see wht happend.
3 days since i replaced all files of wp_postrartings into my server, and google search console is not complaining. Good job Lester ¡¡¡