我的域名是domain1.com
我的插件域名是domain2.com
在domain2.com根文件夹中,我是.htaccess& sitemap.xml文件,内容如下。
Set sh = Worksheets("Data")
With sh
Set rng = .[U2]
Set rng = .Range(rng, .Cells(.Rows.Count, rng.Column).End(xlUp))
rng.TextToColumns Destination:=rng, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, _
FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
Set rng = .[V2]
Set rng = .Range(rng, .Cells(.Rows.Count, rng.Column).End(xlUp))
rng.TextToColumns Destination:=rng, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, _
FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
Set rng = .[N2]
Set rng = .Range(rng, .Cells(.Rows.Count, rng.Column).End(xlUp))
rng.TextToColumns Destination:=rng, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, _
FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
Set rng = .[X2]
Set rng = .Range(rng, .Cells(.Rows.Count, rng.Column).End(xlUp))
rng.TextToColumns Destination:=rng, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, _
FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
Set rng = .[AB2]
Set rng = .Range(rng, .Cells(.Rows.Count, rng.Column).End(xlUp))
rng.TextToColumns Destination:=rng, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, _
FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
Set rng = .[Z2]
Set rng = .Range(rng, .Cells(.Rows.Count, rng.Column).End(xlUp))
rng.TextToColumns Destination:=rng, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, _
FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
End With
我在.htacess中更改了编码 现在我在.htacess中更改此编码 http://domain2.dk/.htaccess文件内容为
RewriteEngine on
RewriteBase /
RewriteRule (.*) http://www.domain1.com/$1 [NC,P]
现在http://domain2.dk/sitemap.xml工作正常,我期待......但http://domain2.dk/无效...
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> http://www.domain2.com/
2016-07-26T18:58:09 + 00:00
每周1.00 http://www.domain2.com/login
2016-07-26T18:58:09 + 00:00
每周0.80
在domain1.com根文件夹中,我是一个包含以下内容的sitemap.xml文件。
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> http://www.domain1.com/
2016-07-26T18:58:09 + 00:00
每周1.00http://www.domain1.com/login
2016-07-26T18:58:09 + 00:00
每周0.80
domain1.com还有.htaccess文件和sitemap.xml文件 www.domain2.com也有.htaccess文件也是sitemap.xml文件
这是我的需要:
domain1.com/sitemap.xml - sitemap.xml应来自domain1.com
www.domain2.com/sitemap.xml - sitemap.xml应来自domain2.com 其他文件来自domain1.com
我可以得到任何解决方案吗?
提前致谢。