0
我htaccess的301重定向工作,如果我不鍵入一個尾隨斜線狀的網址...301重定向不是來自谷歌搜索結果的鏈接工作
www.nicksplumbing.com/water-heater
如果我使用斜線像...
www.nicksplumbing.com/water-heater/
重定向增加了尾部斜槓新的頁面URL一樣的.html後/導致404
這對我來說是一個嚴重的問題,因爲舊的Google搜索結果具有斜線,並且404'd未被重定向。
這裏是我的htaccess:
選項+的FollowSymLinks
RewriteEngine敘述在
ErrorDocument 404 http://www.nicksplumbing.com/404.html
RewriteCond %{HTTP_HOST} ^nicksplumbingrepair.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nicksplumbingrepair.com$ [OR]
RewriteCond %{HTTP_HOST} ^nicksplumbing.com
RewriteRule ^(.*)$ http://www.nicksplumbing.com/$1 [L,R=301,NC]
Redirect 301 /plumbing-company-houston http://www.nicksplumbing.com/plumbers-in-houston.html
Redirect 301 /reviews http://www.nicksplumbing.com/houston-plumbing-company-reviews.html
Redirect 301 /leaky-faucet http://www.nicksplumbing.com/leaky-dripping-faucet-repair-houston.html
Redirect 301 /garbage-disposal http://www.nicksplumbing.com/garbage-disposal-repair-installation-houston.html
Redirect 301 /plumbing-repair http://www.nicksplumbing.com/plumbing-services-houston.html
Redirect 301 /repipe http://www.nicksplumbing.com/repipe-house-specialists-houston.html
Redirect 301 /sewer-repair http://www.nicksplumbing.com/sewer-line-repair-houston.html
Redirect 301 /toilet-clogged http://www.nicksplumbing.com/running-leaking-toilet-repair-houston.html
Redirect 301 /water-heater http://www.nicksplumbing.com/water-heater-repair-installation-houston.html
Redirect 301 /blog http://www.nicksplumbing.com/nicks-plumbing-blog.html
Redirect 301 /contact-us http://www.nicksplumbing.com/contacts.html
是否有人可以幫助? 不顧一切地找到原因,因爲我不想失去任何鏈接果汁。
在此先感謝!