<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Win主机相关文章列表 | 皇家元林</title>
	<atom:link href="https://hjyl.org/tags/win%E4%B8%BB%E6%9C%BA/feed/" rel="self" type="application/rss+xml" />
	<link>https://hjyl.org</link>
	<description>刘元林的个人博客</description>
	<lastBuildDate>Fri, 29 Apr 2011 11:51:40 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://img.hjyl.org/uploads/2019/10/cropped-about-me-32x32.png</url>
	<title>Win主机相关文章列表 | 皇家元林</title>
	<link>https://hjyl.org</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>国内win主机WordPress自动升级问题</title>
		<link>https://hjyl.org/winhost-wordpress-update/</link>
					<comments>https://hjyl.org/winhost-wordpress-update/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Fri, 29 Apr 2011 11:51:40 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[Win主机]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[自动升级]]></category>
		<guid isPermaLink="false">http://hjyl.org/?p=1604</guid>

					<description><![CDATA[国内win主机WordPress自动升级问题]]></description>
										<content:encoded><![CDATA[<p>WordPress很给力，更新的很快。WordPress3.1.2发布了，今天给我公司的网站程序升级的时候，发现还是升级不了。还是linux空间好，不存在这样的问题，尤其是国外的linux，如果你有SSH，或者用VPS，你就知道那服务器的速度有多快！而我公司使用的是win空间，国内的基本上都是win主机，当然linux也有，极少，可能因为盗版的缘故吧！</p>
<p>之前升级到WordPress3.1.1的时候，我还大费周章地下载源代码，再FTP上传，折腾的要死。所以这次不想太折腾，找找关于类似的问题是怎么解决的。一搜才知道，网上类似发生的事太多了，基本上都是因为国内主机的问题。</p>
<p><strong>错误提示：</strong>正在从http://wordpress.org/××××××.zip下载更新，然后等了很久突然classes.php或类似的文件出错；或者有的人直接转到错误页。</p>
<p><strong>解决方法：</strong>找到wp-admin/includes/file.php</p>
<p>找到代码</p>
<pre lang="language" line="1">function download_url( $url, $timeout = 300 )</pre>
<p>将300改成600，上传覆盖即可！</p>
<p>最后建议大家用linux装WordPress。</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="国内win主机WordPress自动升级问题" href="https://hjyl.org/winhost-wordpress-update/">国内win主机WordPress自动升级问题</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/winhost-wordpress-update/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>Win主机下WP3.1出现的几个错误</title>
		<link>https://hjyl.org/win-wp31-404/</link>
					<comments>https://hjyl.org/win-wp31-404/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Sat, 26 Mar 2011 05:09:51 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[404错误]]></category>
		<category><![CDATA[Win主机]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[中文Tag]]></category>
		<category><![CDATA[伪静态]]></category>
		<guid isPermaLink="false">http://hjyl.org/?p=1484</guid>

					<description><![CDATA[Win主机下WP3.1出现的几个错误，通过修改httpd.ini方法把在win主机下的伪静态，Win主机下wp3.1的中文tag出现404错误]]></description>
										<content:encoded><![CDATA[<p>刚刚做好公司的网站，一连串的问题像日本的核泄漏一样一发不可收拾。</p>
<p>1、前几天通过修改httpd.ini方法把在win主机下的伪静态搞定了。代码如下：</p>
<pre lang="language">    [ISAPI_Rewrite]

    # 3600 = 1 hour
    CacheClockRate 3600
    RepeatLimit 32
    # Protect httpd.ini and httpd.parse.errors files
    # from accessing through HTTP
    # Rules to ensure that normal content gets through

    RewriteRule /sitemap.xml /sitemap.xml [L]
    RewriteRule /favicon.ico /favicon.ico [L]
    # For file-based wordpress content (i.e. theme), admin, etc.
    RewriteRule /wp-(.*) /wp-$1 [L]
    # For normal wordpress content, via index.php
    RewriteRule ^/$ /index.php [L]
    RewriteRule /(.*) /index.php/$1 [L]</pre>
<p>当然这个首先的主机要装Rewrite 组件。</p>
<p>2、Win主机下wp3.1的中文tag出现404错误。不过好像不仅是tag中文的问题，只要是链接上有中文的都出现404错误。其他的倒是好改，直接改成拼音或者英文即可，但是tag有英文也有中文。通过搜索发现有同类的问题，但是WP3.1版本的文件名好像调整了，还好换汤不换药。具体操作如下：<br />
找到wp-includes/class-wp.php，用notepad++或者dreamweaver打开，找到</p>
<pre lang="language">if ( isset($_SERVER['PATH_INFO']) )
  $pathinfo = $_SERVER['PATH_INFO'];
else
  $pathinfo = '';
$pathinfo_array = explode('?', $pathinfo);
$pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
$req_uri = $_SERVER['REQUEST_URI'];</pre>
<p>改成</p>
<pre lang="language">if ( isset($_SERVER['PATH_INFO']) )
  $pathinfo = mb_convert_encoding($_SERVER['PATH_INFO'], "UTF-8", "GBK");
else
  $pathinfo = '';
$pathinfo_array = explode('?', $pathinfo);
$pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
$req_uri = mb_convert_encoding($_SERVER['REQUEST_URI'], "UTF-8", "GBK");</pre>
<p>即可。<br />
此修改<a href="https://hjyl.org/go/aHR0cDovL3d3dy5kZWVwaW5zZW8uY29tL3dwX2NudGFnX3N1cHBvcnQv" rel="nofollow" target="_blank">原文在此</a></p>
<p><strong>2011年4月11日更新 关于win主机完美伪静态规则httpd.ini如下：</strong></p>
<pre lang="language">[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# 中文tag解决
RewriteRule /tag/(.*) /index.php?tag=$1
# sitemapxml
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]</pre>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="Win主机下WP3.1出现的几个错误" href="https://hjyl.org/win-wp31-404/">Win主机下WP3.1出现的几个错误</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/win-wp31-404/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
