开发者

htacess mod_rewrite

开发者 https://www.devze.com 2023-01-15 16:51 出处:网络
I have a page on my site called map-xml.php which is an RSS feed of housing properties. To enable me to submit this to Google\'s Data Feeds it needs to have an .xml file extension.

I have a page on my site called map-xml.php which is an RSS feed of housing properties. To enable me to submit this to Google's Data Feeds it needs to have an .xml file extension.

So how would I go about writing a rewrite rule in htaccess which would make map-xml.xml work?

开发者_StackOverflow社区

Thanks!


RewriteRule ^(.*)/map-xml.xml$ /$1/map-xml.php [L]

Should do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号