Typecho论坛
Typecho使用者和开发者的园地
https://forum.typecho.org/
sitemap.xml如何地址重写?
https://forum.typecho.org/viewtopic.php?t=14247
分页:
1
/
1
sitemap.xml如何地址重写?
发表于 :
2021年 4月 8日 14:45
由
kfx
我的sitemap.xml是生成在插件目录,如何在.htaccess文件里写规则,使得访问:
www.mydomain.com/sitemap.xml
时能实际访问www.mydomain.com/usr/plugins/sitemap/sitemap.xml ,并且在地址栏里仍然显示的是
www.mydomain.com/sitemap.xml
Re: sitemap.xml如何地址重写?
发表于 :
2021年 5月 6日 10:26
由
jasonli
RewriteRule ^(.*)/sitemap.xml$ $1/usr/plugins/sitemap/sitemap.xml