我使用Joomla Joomla!3.4.4和XMAP组件2.3.3
现在我想重写url,当url是:
/index.php?option=com_xmap&view=xml&tmpl=component&id=1
重写
/sitemap.xml
这是我在htacces文件中编写的代码,我不知道为什么不能工作
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&view=xml&tmpl=component&id=1 [L]
发布于 2015-12-23 08:06:30
你可以试试这个。
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^sitemap\.xml$ /index.php?option=com_xmap&view=xml&tmpl=component&id=1 [L]
https://stackoverflow.com/questions/34435005
复制