简洁链接

<VirtualHost *:80>
  DocumentRoot "/var/www/znccnet/"
  Options -Indexes
  ServerName www.zxf.net
  ServerAlias zncc.net

  ErrorLog /var/log/httpd/znccnet.err
  CustomLog /var/log/httpd/znccnet combined
</Virtualhost>

伪静态,wordpress打不开时候,

简洁连接
<Directory /var/www/znccnet>
        Options -Indexes
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>

本文出自 “钟枭飞” 博客,谢绝转载!

你可能感兴趣的:(wordpress)