DreamHost自帶的日志不能查看的解决

  使用DreamHost并且安装了WordPress的朋友会发现DH提供的日志不能查看,这是因为WordPress的.htaccess代替了原有rewrite规则造成的,解决方法如下:
编辑站点目录下的.htaccess文件,添加以下内容。
[code]RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.*$ – [L][/code]

Technorati Tags: , , , ,

6 Responses to “DreamHost自帶的日志不能查看的解决”

  • Antonio says:

    一直都困惑这个问题,终于能解决了:)

  • Antonio says:

    已经加了这段代码,看似还是不行,能否将全部rewrite的规则贴出来?

  • kDolphin says:

    在开头加:
    RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/failed_auth.html$
    RewriteRule ^.*$ – [L]

    # BEGIN WordPress
    ……

  • Antonio says:

    看似还是不行
    [code]RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/failed_auth.html$
    RewriteRule ^.*$ – [L]

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress
    [/code]

    是这样吗?

  • kDolphin says:

    我没什么好主意了,给DH的Support发信询问吧,很快会回复的。

  • 幻大灰 says:

    可以解决,见http://www.ashchan.com/2006/03/26/wordpress-cpu-usage-on-dreamhost/。

Leave a Reply

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).