0
我想重定向一个子目录到一个子域,但我必须维护站点地图的端点。重定向301,除非当一个字符串是存在于URL与htaccess
我需要的是:
Redirect 301 /ru/ https://ru.mydomain.com
#Exclude *sitemap*
这类网址无法重定向:
https://www.mydomain/ru/sitemap.xml
https://www.mydomain/ru/sitemap.1.xml
https://www.mydomain/ru/sitemap.3.xml
https://www.mydomain/ru/sitemap_ru.xml
所有有网站地图串,我需要在网站地图字是网址中没有被重定向。 希望可以帮助我,因为我花了很多时间试图修复它没有运气。
我需要这样的:
{if *sitemap* is not present}
Redirect 301 /ru/ https://ru.mydomain.com
{/if}
谢谢!
什么是apache版本? –