- eZ Platform 3.x
- PHP 7.3
Add the following to your composer.json and run php composer.phar update novactive/ezseobundle
to refresh dependencies:
# composer.json
"require": {
"novactive/ezseobundle": "^5.0",
}
Activate the bundle in config\bundles.php
file.
// config\bundles.php
<?php
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
...
Novactive\Bundle\eZSEOBundle\NovaeZSEOBundle::class => ['all' => true],
];
Make sure you add this route to your routing:
# config/routes.yaml
_novaezseo_routes:
resource: '@NovaeZSEOBundle/Resources/config/routing/main.yaml'
See the file bundle/Resources/sql/schema.sql
If on eZ Platform 3x, you need to run:
php bin/console ezplatform:graphql:generate-schema
Add a #
at the beginning of the line
#rewrite "^/robots\.txt" "/robots.txt" break;
#RewriteRule ^/robots\.txt - [L]