wordpress / gentoo / apache / mod_rewrite 的設定

<VirtualHost *:80>
  ServerName toy.monster.tw
  ServerAdmin [email protected]
  DocumentRoot “/var/www/toy.monster.tw”
  CustomLog /var/www/toy.monster.tw/log/access_log.txt combined

  <Directory “/var/www/toy.monster.tw”>
    Options FollowSymLinks
    AllowOverride All
    # AllowOverride controls what directives may be placed in .htaccess files.
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /b/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /b/index.php [L]
</IfModule>

# END WordPress