替换 .htaccess 为 WordPress 提速

将下面代码替换 WordPress 的.htaccess 文件

[其他]代码

# 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 提速