ikickrobots
Forum Replies Created
-
Any suggestions? Can it be disabled?
- This reply was modified 2 years, 6 months ago by ikickrobots.
It may be due to the way WP_HOME is set. Is there any way to solve this? Any suggestions? can we remove
wpseo_permalink_structure_check?if (isset($_SERVER['HTTP_HOST'])) { $scheme = 'http'; if (isset($_SERVER['HTTP_USER_AGENT_HTTPS']) && $_SERVER['HTTP_USER_AGENT_HTTPS'] == 'ON') { $scheme = 'https'; $_SERVER['HTTPS'] = 'on'; } define('WP_HOME', $scheme . '://' . $_SERVER['HTTP_HOST']); define('WP_SITEURL', $scheme . '://' . $_SERVER['HTTP_HOST']); }@sbelletti Check for link branding on Sendgrid. Also, checkout the following links:
https://mindee.com/blog/sendgrid-ssl/
https://docs.sendgrid.com/ui/account-and-settings/how-to-set-up-link-branding
https://docs.sendgrid.com/ui/account-and-settings/custom-ssl-configurationsI disabled the Yoast indexing using the following for the backend domains
add_filter( 'Yoast\WP\SEO\should_index_indexables', '__return_false' );When I browse the site from the backend host, the URLs are not being updated in
wp_yoast_indexabletable and all the metatags were looking good too. However, when I checked the metatags and wp_yoast_indexable table today, I see backend URLs in the permalink. 🙁I wish to have an option to set the main domain in the plugin itself. This is really frustrating.
No problem, I have found an example here https://github.com/Yoast/wordpress-seo/issues/16723, which I tried but didn’t work as expected. I hope to see some features in the future.
thank you.
I tried using
wpseo_home_urlaction but wp_yoast_indexable still updating the backend host urls. Any suggestions to solve this issue?Do you have any example of using
wpseo_home_url? I expect yoast seo not to update canonical urls and other links with backend urls.- This reply was modified 2 years, 11 months ago by ikickrobots.
I can’t set only one home_URL in my case. It changes dynamically and is set in the wp-config.php file.
Is it possible to set a fixed home_URL name for yoast seo plugin only? Maybe something like https://github.com/Yoast/wordpress-seo/blob/e5ceece5469ca38c1b8bb2d35bf5567210b83c92/src/helpers/url-helper.php#L79 can be used to override the home_url.
Further, is it possible not to index the pages if browsed through GUI? It can help in my case as using wpcli I can still index the page using cronjob and it will always give the right home_url i.e main domain.Hello,
Right I am using the reverse proxy. The admin page is not accessible from the main domain hence I have to work on backend host. I tried using yoast helper, reset the wp_yoast_indexable table however if I run optimization from backend host then all the URLs will be indexed with the backend host. To tackle this I can reset the table again and run
wp yoast indexcommand from GUI which gives the right home_url. The issue is if someone browse the site using the backend host, the backend URL will again index in the table. This is something unexpected. Is there a way to override the home_url just for yoast seo plugin? This should solve the issue I am currently having.Hello,
Sorry but the issue is still there. I used yoast test helper plugin, the metatags are changed to the backend subdomain name. I then run wpcli search-replace to replace all the backend subdomains to the actual host name and then ran
wp yoast index. All looked good but when I checked the next day, in metatags, there was subdomain name. I am not able to figure out why. I believe it is due to home_url. I found that it was switched to backend subdomain name, I am not sure why. If I runwp option get homeorwp option get siteurlfrom cli then it gives me the correct domain name.Hello,
Thank you for your reply. How often do we need to click on “Reset indexables tables & migrations” button? Is it once after we do the migration or should we click on a regular basis? What is the equivalent cli command for it in case we need to run it on a regular basis?
When I run wpcli
wp option get homeandwp option get siteurl, it always returns the proxy domain, abc.com so I believe the wordpress-seo cron hooks likewpseo-reindex,wpseo_permalink_structure_checkandwpseo-reindex-linksshould solve the problem, isn’t it? Can you clarify more?
Thank you again.