wordpress 子目录映射到域名的方法

参照文件.htaccess

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
#在这里将子目录转向子域名
Redirect permanent /xxx http://xxx.domain.com
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
# END WordPress
Tagged with: , ,

发表评论

邮箱地址不会被公开。 必填项已用*标注

*