kwaadpepper/sitemap-refresh 问题修复 & 功能扩展

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

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

kwaadpepper/sitemap-refresh

最新稳定版本:2.3.2

Composer 安装命令:

composer require kwaadpepper/sitemap-refresh

包简介

Create sitemap.xml

README 文档

README

Latest Version on Packagist Total Downloads CI

Creates sitemap.xml and refresh using a config file

Installation

Via Composer

composer require kwaadpepper/sitemap-refresh
npm i puppeteer # Pour exec en JS

Usage

  1. php artisan vendor:publish --tag=sitemap-refresh

  2. Change configuration in config/sitemap-refresh.php

  3. You can test your configuration using php artisan sitemap:refresh --dry-run

  4. If you wish to complete the sitemap (like if random models are displayed) run php artisan sitemap:install, then add urls in app/lib/CompleteSitemapWith

URL generation notes

  • Sitemap entries are normalized before being stored, so equivalent URLs like https://example.com and https://example.com/ are exported only once.
  • Default ports are removed during normalization and hosts are canonicalized to lowercase.
  • Query strings are still ignored by the package unless you explicitly index them yourself.
  • During sitemap generation, app.url is temporarily forced into Laravel's URL generator. This ensures URLs produced from route(), url() or custom completeWith callbacks stay on the same canonical domain as the crawler.

Change log

Please see the changelog for more information on what has changed recently.

License

MIT. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-18