kwaadpepper/sitemap-refresh
最新稳定版本:2.3.2
Composer 安装命令:
composer require kwaadpepper/sitemap-refresh
包简介
Create sitemap.xml
README 文档
README
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
-
php artisan vendor:publish --tag=sitemap-refresh -
Change configuration in
config/sitemap-refresh.php -
You can test your configuration using
php artisan sitemap:refresh --dry-run -
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.comandhttps://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.urlis temporarily forced into Laravel's URL generator. This ensures URLs produced fromroute(),url()or customcompleteWithcallbacks 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
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-18