我明白谷歌將抓取該網址,並以這種形式向服務器發出請求:的.htaccess重定向_escaped_fragment_ =
http://test1.ru/compare/search.php?r=ade$da1A$ade$da2A$ade$da3A#!hash1.html
compare.test1.ru/search.php?r=ade$da1A$ade$da2A$ade$da3A#!hash1.html
http://test1.ru/compare/search.php?r=ade$da1A$ade$da2A$ade$da3A?_escaped_fragment_=hash1.html
compare.test1.ru/search.php?r=ade$da1A$ade$da2A$ade$da3A?_escaped_fragment_=hash1.html
服務器路徑爲html http://test1.ru/hash/hash1.html
(散/ hash1.html)
需要重定向形式
http://test1.ru/hash/hash1.html
compare.test1.ru/hash/hash1.html
沒有改變網址 - compare.test1.ru/search.php?r=ade$da1A$ade$da2A$ade$da3A#!hash1.html
謝謝
我想溝通hashbangs(他們是一個可怕的黑客和加載的初始頁面,然後Ajax加載更換頁面的性能損失可能是討厭的)。改爲使用[歷史api](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history),就像[github的](https://github.com/blog/760-的樹滑塊)。 – Quentin