21,886
社区成员
发帖
与我相关
我的任务
分享
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
# Don't show directory listings for URLs which map to a directory.
##Options All -Indexes
# Follow symbolic links in this directory.
##Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /new
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Rewrite current-style URLs of the form 'new?url=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ new?url=$1 [L,QSA]
</IfModule>