Comments (5)
This is fixed in develop
-- I'll roll it into an official release soonish, I have a few other things to do first.
https://github.com/nystudio107/seomatic/tree/develop
from seomatic.
That's pretty strange. Do you have a backtrace you can paste in here?
from seomatic.
Sure thing - I'll send one to you privately since it reveals client info.
from seomatic.
So something clearly isn't right; are you saying the default robots.txt file (which includes {{ siteUrl }}
in the code does't render?
# robots.txt for {{ siteUrl }}
Sitemap: {{ siteUrl }}sitemap.xml
# Don't allow web crawlers to index Craft
User-agent: *
Disallow: /craft/
The above is the default robots.txt, and it is rendering fine here.
from seomatic.
I also had issues with custom env vars. However, I was successful with the code below as documented at: https://craftcms.com/docs/templating/craft.config
{% if craft.config.devMode %}
# Don't allow web crawlers to index site
User-agent: *
Disallow: /
{% else %}
# Don't allow web crawlers to index Craft
User-agent: *
Disallow: /craft/
{% endif %}
from seomatic.
Related Issues (20)
- SEOmatic caches meta content with "generate-transform" action urls HOT 1
- FeedMe Support HOT 1
- Edit content SEO for Digital Product types
- Sitemaps issue with multisite
- Enabling robots in devMode/local
- Overriding seomatic.meta.robots value has no effect on <meta> tag (in production environment) HOT 1
- Referrer-Policy should be updated
- Trying to get property 'sourceName' of non-object when clicking breadcrumb in seo content HOT 3
- Turn off x-powered-by: SEOmatic
- turn off Automatic Render Enabled and manually render scripts HOT 1
- Google Analytics showing /actions/seomatic URLs for some reason
- “Internal server error” when piggybacking (in PHP) HOT 2
- Google Tag Manager code ends up in body instead of head HOT 1
- Environment Variables/Aliases not parsed for humans.txt, though proposed in Text Field HOT 1
- Provide data in a structured way on GraphQL endpoint HOT 2
- Can't retrieve (GQL) or save (control panel) humans template HOT 1
- Section Entries Not Populating to Content SEO and Sitemap.xml HOT 2
- Pagination for Sitemaps / Sitemap Indexes HOT 2
- Sitemap Page loads slowly HOT 1
- Seo images don't update mtime when asset settings are changed. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seomatic.