将下面代码替换 WordPress 的.htaccess 文件
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# BEGIN WordPressRewriteEngine on## Unless you have set a different RewriteBase preceding this# point, you may delete or comment-out the following# RewriteBase directive:RewriteBase /## if this request is for "/" or has already been rewritten to WPRewriteCond $1 ^(index\.php)?$ [OR]# or if request is for image, css, or js fileRewriteCond $1 \.(gif|jpg|css|js|ico)$ [NC,OR]# or if URL resolves to existing fileRewriteCond %{REQUEST_FILENAME} -f [OR]# or if URL resolves to existing directoryRewriteCond %{REQUEST_FILENAME} -d# then skip the rewrite to WPRewriteRule ^(.*)$ - [S=1]# else rewrite the request to WPRewriteRule . /index.php [L]## END wordpress |
转载请注明:《替换 .htaccess 为 WordPress 提速》
