2010-09-30 149 views
0

目前谷歌顯示我的網站鏈接爲...如何讓Google顯示我的鏈接爲example.com不example.com/

example.com/ 

...但是,我想它要顯示如...

example.com 

我有以下的元數據

<link rel="canonical" href="http://example.com" /> 

...而以下是我的htaccess文件...

IndexIgnore * 

ErrorDocument 400 /error 
ErrorDocument 401 /error 
ErrorDocument 403 /error 
ErrorDocument 404 /error 
ErrorDocument 500 /error 

RewriteEngine on 
RewriteBase/

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ 
RewriteRule ^index\.php$/[R=301,L] 

RewriteRule ^(home|cv|handouts|links|contact|copyright|cv)/?$ /index.php?module=home&action=$1 
RewriteRule ^(log(in|out))/?$ /index.php?module=authentication&action=$1 

RewriteRule ^photos/?$ /index.php?module=gallery&action=album&album=general 
RewriteRule ^gallery/?$ /index.php?module=gallery&action=album&album=general 
RewriteRule ^gallery/([^/\.]+)/?$ /index.php?module=gallery&action=album&album=$1 
RewriteRule ^gallery/([^/\.]+)/([^/\.]+)/?$ /index.php?module=gallery&action=album&album=$1$&page=$2 
RewriteRule ^gallery/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ /index.php?module=gallery&action=item&album=$1$&page=$2&item=$3 

RewriteRule ^release/?$ /index.php?module=release&action=release 
RewriteRule ^error/?$ /index.php?module=error&action=error 

...和htaccess文件如上,我注意到訪問example.com或example.com/index.php重定向到example.com/這可能是問題?

與所有他這樣說,並就如何讓谷歌顯示我作爲example.com鏈接任何想法不example.com/

提前感謝!

+3

對不起,我沒有你的答案,我只是想知道爲什麼這很重要? :) – Maran 2010-09-30 20:55:00

回答

3

運行一個Google Search每個單個網站在其數據庫中的域名後面都有一個斜線。他們沒有結尾斜線的唯一時間是在路徑組件之後。路徑組件尾部斜線由每個網站的管理員決定。

在未來,他們可能會像在Chrome中一樣隱藏尾部斜線,但現在沒有什麼您可以使用

相關問題