![](/img/trans.png)
[英]Not fetching correct canonical URL when tag is multiline, How to grep canonical URL when it's tag is multiline?
[英]canonical tag and file extensions
我只是想知道,我使用.htaccess
腳本從我的URL's
刪除文件擴展名
規范標記(您希望用戶看到的直接URL
是否包含文件擴展名,例如;
mysite.co.uk/locations/regions/thislocation.html
我的實際網址的外觀示例;
<link rel="canonical" href="http://mysite.co.uk/locations/regions/thislocation"/>
是否可以使用上述URL或文件擴展名設置規范標記?
規范URL應該表示您希望用戶訪問的URL(並在其地址欄中查看),而不是僅作為您的實現的副作用存在的URL(其重點是停止 .html
版本被索引)搜索引擎)。
@anubhava您必須設置一個沒有擴展名的規范標記。因為Google會抓取一個顯示在您的標題中的網址。
因此鏈接將是: <link rel="canonical" href="http://mysite.co.uk/locations/regions/thislocation"/>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.