2009-06-24 82 views
2

我已將一個RSS訂閱源添加到我的網站,但我無法讓Google讀者和其他人從我的根域(www.example.com)中選取它們,他們需要完整的地址到RSS飼料。如果我的用戶不需要添加完整的RSS提要地址,我如何讓他們提取我的提要?我的域名根目錄上的RSS

我在下面添加了meta標籤,但它似乎沒有奏效。

感謝 湯姆

回答

1

默認文檔(即你在example.com看到一個)應該有<head>部分裏面的東西是這樣的:

<link rel="alternate" type="application/atom+xml" title="RSS" href="/feeds/question/1037523"> 
1

添加這頭你索引頁:

<link href="/myRssOutputFile.php" rel="alternate" type="application/rss+xml" title="RSS 2.0" /> 
0

您需要在頁面的頭部添加一個鏈接

<link href="/path/to/feed" title="Feed Title" type="application/rss+xml" rel="alternate"/>