ethercreative/seo

Noindex issue with new google search console

alanski66 opened this issue · 4 comments

Description

I recently started a new marketing site and started to add the domain to google search consle as opposed to url. The domain is a new thing google offer as opposed to just adding url so I went that route.
After two weeks of submitting SEO sitemaps I kept getting noindex flags from google.
I checked the raw page output and headers sent - noindex issue persisted, along with a very confusing HTTPS message

Total head scratch.

Having lost time on SEO juice building i just swapped out this SEO plugin to another commercial plugin i have used on other sites. Submitted site map - and we are back in the index. Go figure.

Not sure whats going on here but it ain't good.

Steps to reproduce

  1. Just use it as intended and set environment correctly
  2. Request search index via google console via submission of SEO produced sitemaps

Additional info

  • Craft version: 4
  • SEO version: latest
  • PHP version: 8.1
  • Database driver & version: mySQL5.7

Yes, this is the same as #432

I'm still experiencing this issue?

If anyone else is experiencing this, it's because the plugin is still looking for ENVIRONMENT variable. Craft CMS 4 now uses CRAFT_ENVIRONMENT. So a hack around this problem until this plugin is updated is to have both variables in your .env file.

CRAFT_ENVIRONMENT=production
ENVIRONMENT=production

The work-around should not be necessary anymore in the latest version of the plug-in.