正在载入...

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

[其他]代码

# BEGIN WordPress
RewriteEngine 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 WP
RewriteCond $1 ^(index\.php)?$ [OR]
# or if request is for image, css, or js file
RewriteCond $1 \.(gif|jpg|css|js|ico)$ [NC,OR]
# or if URL resolves to existing file
RewriteCond%{REQUEST_FILENAME}-f [OR]
# or if URL resolves to existing directory
RewriteCond%{REQUEST_FILENAME}-d
# then skip the rewrite to WP
RewriteRule^(.*)$ -[S=1]
# else rewrite the request to WP
RewriteRule./index.php [L]
## END wordpress

本文链接:

关键词:htaccess, WordPress, 互联网, 代码,

(全文完        )

Comments

2 条评论(网友评论:2 条,博主回复:0 条)快速评论

  1. [双子座]

  2. 顶!!!!!!!!!!

你需要 登录 才可以回复.