domain.tld / sitemap.xml显示主页而不是站点地图

时间:2015-07-03 16:31:26

标签: xml .htaccess sitemap

今天我尝试了几次将站点地图上传到我的网站。 但是,当我试图通过访问'mydomain.com/sitemap.xml'访问浏览器上的站点地图时,主页上会显示。

请帮帮我。

编辑了根网站的htaccess

(上述网站是使用插件域访问子文件夹的网站)

RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&id=2&view=xml
# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.  (php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

0 个答案:

没有答案