Wordpress 重写URL整个页面不包含404错误和htaccess

Wordpress 重写URL整个页面不包含404错误和htaccess,wordpress,.htaccess,Wordpress,.htaccess,早上好,伙计们, 我想问一下如何为wordpress设置htaccess 也就是说,我已经在尝试这样的方法: Options+FollowSymLinks 重新启动发动机 重写cond%{HTTP_HOST}^www\。[北卡罗来纳州] 重写规则^https://www.%{HTTP_HOST}%{REQUEST_URI}[L,R=301] # 选项+符号链接所有者匹配 重新启动发动机 重写cond%{REQUEST_FILENAME}-F 重写cond%{REQUEST_FILENAME}-D

早上好,伙计们, 我想问一下如何为wordpress设置htaccess

也就是说,我已经在尝试这样的方法:

Options+FollowSymLinks
重新启动发动机
重写cond%{HTTP_HOST}^www\。[北卡罗来纳州]
重写规则^https://www.%{HTTP_HOST}%{REQUEST_URI}[L,R=301]
#
选项+符号链接所有者匹配
重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[R=301]
#
重新启动发动机
重写规则。*-[E=HTTP\U授权:%{HTTP:AUTHORIZATION}]
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#
错误文档404/404.html
但仍然无法完成所有这些代码,我的错误在哪里?谁能告诉我,伙计们


选项+符号链接所有者匹配
重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L,R=301]
如果我这样设置,整个页面都会重定向到homepage>。
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#
<IfModule mod_rewrite.c>
Options +SymLinksIfOwnerMatch 
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [R=301]
</IfModule>
#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
#
ErrorDocument 404 /404.html
<IfModule mod_rewrite.c>
Options +SymLinksIfOwnerMatch 
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L,R=301]
</IfModule>