<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://kb.idcspy.com/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>https://kb.idcspy.com/index.php?action=history&amp;feed=atom&amp;title=Godaddy_windows%E4%B8%BB%E6%9C%BA%E8%B7%AF%E5%BE%84%E9%97%AE%E9%A2%98%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95</id>
		<title>Godaddy windows主机路径问题的解决办法 - 修订历史</title>
		<link rel="self" type="application/atom+xml" href="https://kb.idcspy.com/index.php?action=history&amp;feed=atom&amp;title=Godaddy_windows%E4%B8%BB%E6%9C%BA%E8%B7%AF%E5%BE%84%E9%97%AE%E9%A2%98%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95"/>
		<link rel="alternate" type="text/html" href="https://kb.idcspy.com/index.php?title=Godaddy_windows%E4%B8%BB%E6%9C%BA%E8%B7%AF%E5%BE%84%E9%97%AE%E9%A2%98%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95&amp;action=history"/>
		<updated>2026-06-09T08:33:08Z</updated>
		<subtitle>本站上此页的修订历史</subtitle>
		<generator>MediaWiki 1.16.5</generator>

	<entry>
		<id>https://kb.idcspy.com/index.php?title=Godaddy_windows%E4%B8%BB%E6%9C%BA%E8%B7%AF%E5%BE%84%E9%97%AE%E9%A2%98%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95&amp;diff=2038&amp;oldid=prev</id>
		<title>Bbidc: 以内容“==godaddy windows主机路径问题的解决办法==  路径问题有的程序可以在后台或者代码里设置下即可解决，比如Z-blog程序据可以在后台...”创建新页面</title>
		<link rel="alternate" type="text/html" href="https://kb.idcspy.com/index.php?title=Godaddy_windows%E4%B8%BB%E6%9C%BA%E8%B7%AF%E5%BE%84%E9%97%AE%E9%A2%98%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95&amp;diff=2038&amp;oldid=prev"/>
				<updated>2011-12-14T06:40:36Z</updated>
		
		<summary type="html">&lt;p&gt;以内容“==godaddy windows主机路径问题的解决办法==  路径问题有的程序可以在后台或者代码里设置下即可解决，比如Z-blog程序据可以在后台...”创建新页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新建页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==godaddy windows主机路径问题的解决办法==&lt;br /&gt;
&lt;br /&gt;
路径问题有的程序可以在后台或者代码里设置下即可解决，比如Z-blog程序据可以在后台设置&lt;br /&gt;
&lt;br /&gt;
查看godaddy官方帮助文档发现了前面一段时间的godaddy windows主机程序出现的路径问题的原因。&lt;br /&gt;
&lt;br /&gt;
访问子目录网站多出的网站文件夹目录的原因是原来网站程序读出站点物理路径然后再读出文件所在的路径，再计算出实际安装的主目录。&lt;br /&gt;
&lt;br /&gt;
解决的办法就是通过修改Server.MapPath（）指定获取的路径&lt;br /&gt;
&lt;br /&gt;
下面是返回当前路径的示例：&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;%&lt;br /&gt;
  Dim currentdirectorypath&lt;br /&gt;
  currentdirectorypath = Server.MapPath(&amp;quot;.&amp;quot;)&lt;br /&gt;
  response.write currentdirectorypath&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
根据你输入的内容会返回不同的结果，&lt;br /&gt;
&lt;br /&gt;
下面依次返回当前目录的上一层目录（也就是父目录）、程序的根目录、指定的页面。&lt;br /&gt;
&lt;br /&gt;
  Server.MapPath(&amp;quot;..&amp;quot;) &lt;br /&gt;
  Server.MapPath(&amp;quot;/&amp;quot;) &lt;br /&gt;
  Server.MapPath(&amp;quot;IDCSpy.aspx&amp;quot;) &lt;br /&gt;
&lt;br /&gt;
另外有些程序在后台设置下即可避免出现路径问题,比如WordPress和Z_blog程序&lt;br /&gt;
[[category:Godaddy]]&lt;br /&gt;
[[category:GoDaddy知识库]]&lt;br /&gt;
{{template:GoDaddy link}}&lt;/div&gt;</summary>
		<author><name>Bbidc</name></author>	</entry>

	</feed>