Skip to content

Latest commit

 

History

History
79 lines (47 loc) · 1.22 KB

INSTALL.md

File metadata and controls

79 lines (47 loc) · 1.22 KB


Install

Requirements

  • eZ Platform 3.x
  • PHP 7.3


Installation steps

Use Composer

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",
}

Register the bundle

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],
];

Add routes

Make sure you add this route to your routing:

# config/routes.yaml

_novaezseo_routes:
    resource: '@NovaeZSEOBundle/Resources/config/routing/main.yaml'

Create the table

See the file bundle/Resources/sql/schema.sql

If on eZ Platform 3x, you need to run:

php bin/console ezplatform: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]