目前我正在与seo合作,我正在创建sitemaps。我用的是RoumenDamianoff/laravel-sitemap图书馆的laravel 5,所以我没有几个问题要问你。
Route::get('/search/result/{category}/{location?}/{pagination?})。例如,url可以是/search/result/plumber/new_york/page=?1。如何定义{分类}和{location}变量的每个选项?或者搜索引擎可以理解这个定义?Route::get('jobs/{pagination?}'),我是否必须定义每一个包含图像的页面?或者我可以这样写url并添加所有的图片吗?post方法添加路由,还是不需要添加路由?提前感谢!
发布于 2015-09-01 21:32:16
您可能希望使用规范告诉搜索引擎将这些不同的页面都视为相同的页面,并给href一些默认值。
<link rel="canonical" href="https://yourapp.com/search/result/" />您可以在这里阅读更多内容:https://moz.com/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps
https://stackoverflow.com/questions/32333920
复制相似问题