socialog/seo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

socialog/seo

Composer 安装命令:

composer require socialog/seo

包简介

SEO module for Socialog

README 文档

README

SEO module for Socialog

This module can be used without Socialog, it adds the following functions:

Robots.txt

Adds a robots file on /robots.txt which can be configured using the module.config.php so you can easily have different robots.txt in your development or production environment

return array(
    'socialog-seo' => array(
        'robots' => array(
            // Which user agents are allowed
            'user-agent' => '*',
            'disallow' => array(
                // The routes which should be blocked for search engines
            ),
        ),
        'content' => 'all',
    )
);

In a development environment you can tell search engines to ignore the website by configuring it as follows:

return array(
    'socialog-seo' => array(
        'robots' => array(
            'disallow' => array( '/' )
        ),
    )
);

Humans.txt

For more information on humans.txt see humanstxt

Add a humans.txt route which serves a humans.phtml view

Redirection

Easy configuration of 301 redirects

'socialog-seo' => array(
    'redirect' => array(
        '/post/17' => '/manage-assets-in-zend-framework-2',
        '/post/16' => '/using-bootstrap-in-his-own-scope'
    )
)

Or use the advanced configuration

'socialog-seo' => array(
    'redirect' => array(
        '/post/17' => array (
            'url' => '/manage-assets-in-zend-framework-2',
            'code' => 301
        )
    ),
),

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-12-24