Wordpress HTTP请求501内部服务器错误
你好,我有digitalocean一键应用程序包含Wordpress。 我将域添加到服务器并为服务器创建SSL证书。 很好,但当我要求时 其重定向->并给出该错误:Wordpress HTTP请求501内部服务器错误,wordpress,http,ssl,https,internal-server-error,Wordpress,Http,Ssl,Https,Internal Server Error,你好,我有digitalocean一键应用程序包含Wordpress。 我将域添加到服务器并为服务器创建SSL证书。 很好,但当我要求时 其重定向->并给出该错误: 内部服务器错误 服务器遇到内部错误或配置错误,无法完成您的请求。 请与服务器管理员联系:webmaster@localhost通知他们此错误发生的时间,以及您在此错误之前执行的操作。 有关此错误的更多信息,请参阅服务器错误日志。 此外,尝试使用ErrorDocument处理请求时遇到301永久移动错误。 请帮帮我。我尝试将htt
内部服务器错误 服务器遇到内部错误或配置错误,无法完成您的请求。 请与服务器管理员联系:webmaster@localhost通知他们此错误发生的时间,以及您在此错误之前执行的操作。 有关此错误的更多信息,请参阅服务器错误日志。 此外,尝试使用ErrorDocument处理请求时遇到301永久移动错误。
请帮帮我。我尝试将http重定向到https,但它不起作用! 这是我的.htaccess文件,其中包含:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
重新编写引擎打开
重写cond%{HTTPS}=在…上
重写规则^(.*)$https://%{HTTP_HOST}%{REQUEST_URI}[L,R=301,NE]
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
试试这个,对我有用:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTPS} =off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]
</IfModule>
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
RewriteCond%{HTTPS}=off
重写规则^https://%{HTTP_HOST}%{REQUEST_URI}[QSA,L,R=301]
试试这个,对我有用:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTPS} =off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]
</IfModule>
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
RewriteCond%{HTTPS}=off
重写规则^https://%{HTTP_HOST}%{REQUEST_URI}[QSA,L,R=301]
抱歉还是一样:/yoursite.com/wp-admin/options-general.phpWordpress URL(https)=>()site URL(https)=>()抱歉还是一样:/yoursite.com/wp-admin/options-general.phpWordpress URL(https)=>()site URL(https)=>()