http://domain-1.com/somefolder-1
有时域1在子文件夹之后有一些信息
http://domain-1.com/somefolder-1/PRESERVE-THIS-PATH
我需要的是发送domain-1 / somefolder-1
到另一个域
http://domain-2.com/anotherfolder-1/PRESERVE-THIS-PATH
保留路径(如果存在)
答案 0 :(得分:2)
您可以在@Html.Raw(string.Format("<{0}>{1}</{0}>", subArticleLevel, subarticle.SubTitle))
的网站根目录.htaccess中使用此规则:
domain-1