# Novactive eZ SEO Bundle
# Install
## Installation steps
### Use Composer
Add the lib to your composer.json, run `composer require novactive/ezseobundle` to refresh dependencies.
Then inject the bundle in the `bundles.php` of your application.
```php
Novactive\Bundle\eZSEOBundle\NovaeZSEOBundle::class => [ 'all'=> true ],
```
### Add routes
Make sure you add this route to your routing:
```yml
# config/routes.yaml
_novaezseo_routes:
resource: '@NovaeZSEOBundle/Resources/config/routing/main.yaml'
```
### Override if needed admin config parameter by siteaccess
It is used in command Add field SEO in Content Type
```yml
novactive.novaseobundle.default.admin_user_id: NEW_ADMIN_ID
```
### Create the table
See the folder `bundle/Resources/sql`
You also need to run:
```bash
php bin/console ibexa:graphql:generate-schema
```
### Remove the Robots.txt (native RewriteRules )
Add a `#` at the beginning of the line
#### Nginx
```
#rewrite "^/robots\.txt" "/robots.txt" break;
```
#### Apache
```
#RewriteRule ^/robots\.txt - [L]
```