sfSeoUrlAliasPlugin - 0.9.3

Summary

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfSeoUrlAlias plugin

Overview

The sfGuardPlugin is a symfony plugin. This plugin translate and forward alias to the real destination. All translations from external to internal url stored in database.

Installation

  • Install the plugin

    > symfony plugin:install sfSeoUrlAliasPlugin
    

    or copy files to plugins folder

    > symfony plugin:publish-assets
    
  • Clear cache

    > symfony cc
    

Configuration

  • Enable the plugin in apps/frontend/config/settings.yml:

    all:
      .settings:
        enabled_modules:      [default, sfSeoUrlAlias]
    
  • Set configuration in apps/frontend/config/app.yml:

    all:
      sf_seo_url_alias:
        delimeter: '/'
        #route_restriction: '^([A-Za-z0-9\_\-\+,])+(\.)+([a-zA-Z0-9\-\_\.\+,])+$'
    
  • Rebuild sql

    > symfony propel:build-sql
    

    (Warning! This command will remove all data in your database.)

    > symfony propel:insert-sql
    

    Clear cache

    > symfony cc
    

Usage

  • Restriction of aliases

    Alias must contain: name.extension (example: article.html)

  • Load sample aliases

    > symfony propel:data-load
    
  • Example aliases:

    the same destination but diffrent aliases:

    http://yoursite.com/contact-form.html       =>(forward)    http://yoursite.com/article/read/15
    http://yoursite.com/company-contact-us.html =>(forward)    http://yoursite.com/article/read/15
    

    diffrent destination and diffrent aliases:

    http://yoursite.com/registerd-users.xls     =>(forward)    http://yoursite.com/user/list
    
    http://yoursite.com/adam-mickiewicz.xml     =>(forward)    http://yoursite.com/writer/show/321
    

License

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.