This is a redirect system for symfony2.
This bundle use the framework css getuikit
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Funstaff\Bundle\RedirectBundle\FunstaffRedirectBundle(),
);
}
$ php app/console doctrine:schema:update --force
funstaff_redirect:
resource: "@FunstaffRedirectBundle/Resources/config/routing.xml"
Default configuration:
funstaff_redirect:
listener: exception
layout: '::base.html.twig'
enabled_stat: true
export_path: %kernel.root_dir%/export
If you would like to redirect on request, change the listener parameter to "request".
Export:
$ php app/console funstaff:redirect:export [filename]
Default filename is redirect.csv
Import:
$ php app/console funstaff:redirect:import [filename]
Default filename is redirect.csv
Default export path is: %kernel.root_dir%/export
If you would like to change the default path, add parameter "export_path" in your configuration.
File structure:
source[tab]destination[tab]statusCode[tab]enabled
foo[tab]bar[tab]307[tab]1
The field source is mandatory