承接 funstaff/redirect-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

funstaff/redirect-bundle

Composer 安装命令:

composer require funstaff/redirect-bundle

包简介

Redirect bundle catch request url and redirect to another url if the destination url exist

README 文档

README

Master: Build Status

This is a redirect system for symfony2.

This bundle use the framework css getuikit

Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Funstaff\Bundle\RedirectBundle\FunstaffRedirectBundle(),
    );
}

Create table redirect in database

$ php app/console doctrine:schema:update --force

app/config/routing.yml

funstaff_redirect:
    resource: "@FunstaffRedirectBundle/Resources/config/routing.xml"

Configuration

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/Import

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

统计信息

  • 总下载量: 6.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-04-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固