2
votes
Accepted
Why does the header set X-Robots-Tag apply to all pages?
The E flag is being used for LiteSpeed as opposed to ENV for Apache.
Where did you get this from? The LiteSpeed docs appear to show that LiteSpeed is the same as Apache in this respect and require ...
2
votes
Why is Google Search Console getting X-Robots-Tag noindex?
I have a nginx directive that set X-Robots-Tag to none for every page. I thought it was some kind of null value for the header...
Now that I took some time to RTFM, I learned that none means both ...
2
votes
Not able to remove NOODP tag from wordpress site
Your Yoast SEO plugin version is outdated. If you update your plugin to the latest version, at this moment 17.2.1, your issue will be resolved.
There was an issue resolved in version 4.6 that affects ...
2
votes
Preventing Search Engines Indexing Pages 2, 3 and More?
If it is because of SEO and the warnings in the Google Search console, these can be ignored. wp / Page2 and so on should still be indexed. The this answer and the article with the answer from google:
...
1
vote
<meta name="robots" duplicate issue
this question is too generic to be answered. You need to debug and understand where those 2 meta are created.
As a first step I would disaable all the plugin and enable one by one to see if it's ...
1
vote
Notice: Undefined index: h in themes/dentario/fw/core/core.wp.php on line 1515
First of all, a PHP Notice is just that: a notice. It's not an error. PHP is simply letting you know there is a minor issue with the code. The code will probably still work OK. 98% of site PHP logs ...
1
vote
website not indexed
If you go to example.com/robots.txt, that will show you the directives for search engine bots. You can also check the meta tags on individual pages to see if they're being blocked.
Best option would ...
1
vote
Accepted
Hide my staging subdomains from search results without impacting the visibility of the root domain
Use a Plugin
First of all, your CODE looks fine. However, it's better if you put that code in a small custom Plugin. That way, you can easily keep the plugin active on the development and staging ...
1
vote
Wordpress adds 'noindex' tag to search results. Anything I can do about it?
For technical SEO reasons, it's best to noindex internal search results generated by WordPress. This is because it's almost always considered detrimental to the search engine experience... having &...
1
vote
Set noindex page-comment from Pages 2, 3 and More?
function noindex_comments_pages()
{
global $cpage;
if (!empty($cpage) && $cpage > 1) {
echo '<meta name="robots" content="noindex">';
echo "\n&...
1
vote
Force meta data on specific product type
You can try the wp_head hook:
add_action( 'wp_head', 'check_for_enviso_group_ticket' );
function check_for_enviso_group_ticket() {
if ( is_product() && ( 'enviso_group_ticket' == ...
1
vote
Accepted
Noindex Posts From Certain Authors In Wordpress
From codex: is_author() is a conditional tag which determines whether the query is for an existing author archive page.
so it does not work for your scope.
Best solution, instead of using the ...
1
vote
How to noindex automatically all post of a specific category?
Being excluded-cat and excluded-cat-1 the categories you want to exclude from indexing:
add_action('wp_head','AS_exclude_category_from_indexing');
function AS_exclude_category_from_indexing(){
$...
1
vote
Noindex subscriber author page
The easiest way to accomplish this is to conditionally call wp_no_robots() (or echo your custom <meta> element) in a wp_head action hook. This has the added benefit of being modular - you could ...
1
vote
Noindex subscriber author page
The function you want is get_userdata(). Since you need to do this outside the loop, the process is a little less straight-forward.
The first thing you need to do is set up a variable called $curauth ...
1
vote
Accepted
Check If search query contains something?
After the question's update, I think that you need to set the canonical URL:
add_action( 'wp_head', 'cyb_search_results_canonical_URL' );
function cyb_search_results_canonical_URL() {
if( ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
noindex × 50seo × 13
nofollow × 6
plugins × 5
robots.txt × 5
php × 4
posts × 4
pagination × 4
author × 3
google × 3
google-search × 3
custom-post-types × 2
functions × 2
categories × 2
woocommerce-offtopic × 2
pages × 2
redirect × 2
urls × 2
navigation × 2
plugin-wp-seo-yoast × 2
wp-head × 2
search-engines × 2
rel-canonical × 2
plugin-development × 1
wp-query × 1