<?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>男单 618 &#187; htaccess</title>
	<atom:link href="http://www.ai7.org/wp/html/tag/htaccess/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ai7.org/wp</link>
	<description>生活象筒装的卫生纸，开始的时候怎么扯都不觉得在转，后来转的越来越快。</description>
	<lastBuildDate>Sun, 11 Dec 2011 12:22:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>使用cos-html-cache插件后的两个问题</title>
		<link>http://www.ai7.org/wp/html/569.html</link>
		<comments>http://www.ai7.org/wp/html/569.html#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:17:38 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[cos-html-cache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/569.html</guid>
		<description><![CDATA[1、WordPress内置的搜索功能不能使用。2、搜索引擎没有更新，所收录的页面还是http://www.yoursite.com/?p=23这样的格式，无法正确跳转。 对于第一个问题，网上有一些讨论，主要是建议使用google搜索代替内置的搜索，或者修改源文件。使用Google搜索的话，当然有一些好处，但是搜索结果不如内置的准确。修改源文件的话，有几个地方都有可能涉及到这行代码，比如当前模板目录下的searchform.php，wp-includes下的general-template.php等，具体是哪一个文件在起作用，取决于使用的模板和WordPress版本。而且修改源文件这种方法在版本升级的时候，很容易失效，还要重新改一次。 而对于第二个问题，网上好象没有什么讨论。可能很多人不像我这么懒，一开始就将默认的永久链接格式改掉了。 其实这两个问题有一个共同解决方法，就是在.htaccess文件中加一句:DirectoryIndex index.php index.html 这句话的作用是指定index.php的优先级比index.html高，也就是说，如果访问http://www.yousite.com/的话，会先访问index.php文件。在使用cos-html-cache插件之前，由于没有index.html文件，所以不存在优先级的问题。使用了这个插件之后，index.html的优先级通常比较高，问题就来了。 btw: .htaccess是个好东西。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F555.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">chrome对WordPress的编辑器支持不好</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F23.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Word 另存为 HTML 文件后，行内公式对齐问题的解决方案</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F773.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用lxml解析html文件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F63.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决了两个Opera的问题</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>1、WordPress内置的搜索功能不能使用。<br />2、搜索引擎没有更新，所收录的页面还是http://www.yoursite.com/?p=23这样的格式，无法正确跳转。</p>
<p>对于第一个问题，网上有<a target="_blank" href="http://www.yysonline.com/html/y2009/m09/446.html">一些讨论</a>，主要是建议使用google搜索代替内置的搜索，或者修改源文件。使用Google搜索的话，当然有一些好处，但是搜索结果不如内置的准确。修改源文件的话，有几个地方都有可能涉及到这行代码，比如当前模板目录下的searchform.php，wp-includes下的general-template.php等，具体是哪一个文件在起作用，取决于使用的模板和WordPress版本。而且修改源文件这种方法在版本升级的时候，很容易失效，还要重新改一次。</p>
<p>而对于第二个问题，网上好象没有什么讨论。可能很多人不像我这么懒，一开始就将默认的永久链接格式改掉了。</p>
<p>其实这两个问题有一个共同解决方法，就是在.htaccess文件中加一句:<br />DirectoryIndex index.php index.html</p>
<p>这句话的作用是指定index.php的优先级比index.html高，也就是说，如果访问http://www.yousite.com/的话，会先访问index.php文件。在使用cos-html-cache插件之前，由于没有index.html文件，所以不存在优先级的问题。使用了这个插件之后，index.html的优先级通常比较高，问题就来了。</p>
<p>btw: .htaccess是个好东西。</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=1f58a6ba-be6c-87b9-bd23-0ae9fc60c7ef" /></div>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F555.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">chrome对WordPress的编辑器支持不好</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F23.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Word 另存为 HTML 文件后，行内公式对齐问题的解决方案</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F773.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用lxml解析html文件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F63.html&from=http%3A%2F%2Fwww.ai7.org%2Fwp%2Fhtml%2F569.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决了两个Opera的问题</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/569.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

