承接 evheniy/robots-txt-bundle 相关项目开发

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

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

evheniy/robots-txt-bundle

最新稳定版本:1.0.0

Composer 安装命令:

composer require evheniy/robots-txt-bundle

包简介

The RobotsTxtBundle adds the ability to generate robots.txt file to your application.

README 文档

README

This bundle provides robots.txt generator for Symfony2

knpbundles.com

Latest Stable Version Total Downloads Latest Unstable Version License

Build Status Coverage Status Scrutinizer Code Quality Build Status

Installation

$ composer require evheniy/robots-txt-bundle "1.*"

Or add to composer.json

"evheniy/robots-txt-bundle": "1.*"

AppKernel:

public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\RobotsTxtBundle\RobotsTxtBundle(),
            ...
        );
        ...
...

config.yml:

robots_txt:
  - 'User-agent: *'

Or with sitemap:

robots_txt:
  - 'User-agent: *'
  - 'Sitemap: http://test.com/sitemap.xml'

The last step

app/console robots.txt:dump

Using different environments

The main idea is to use robots.txt for different environments, for example: for dev hiding project from indexing robots like Google

config_prod.yml:

robots_txt:
  - 'User-agent: *'
  - 'Sitemap: http://test.com/sitemap.xml'

config_dev.yml:

robots_txt:
  - 'User-agent: *'
  - 'Disallow: /'

And run it for prod:

app/console robots.txt:dump --env=prod

And run it for dev:

app/console robots.txt:dump --env=dev

Or just

app/console robots.txt:dump

License

This bundle is under the MIT license.

Документация на русском языке

Demo

Build a robots.txt

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固