403错误以及plesk和wordpress错误被禁止

时间:2019-02-13 18:19:41

标签: wordpress plesk-onyx

我想将我的网站链接到名为shopmaster的woocomerce扩展程序

但是当插入我的链接并单击connect im时出现此错误,我已经尝试了一切

禁止 您无权访问此文档。 shopalway.co.za上的Web服务器

我尝试过的东西!

  1. 确保我的帖子名称正确
  2. 启用目录浏览
  3. 将文件和文件夹设置为755 filezilla
  4. 我什至创建了一个名为httacces的文件夹
  5. 清理鸡群
  6. 联系网络托管商,他们说什么都没错
  7. 确保已启用rest api 8.删除所有文件并重新安装wordpress
  8. 甚至在代码中更改了web.config文件 从虚假的希望变为真正的希望

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <directoryBrowse enabled="true" />  (<---was on false)
    <httpErrors>
      <remove statusCode="502" subStatusCode="-1" />
      <remove statusCode="501" subStatusCode="-1" />
      <remove statusCode="500" subStatusCode="-1" />
      <remove statusCode="412" subStatusCode="-1" />
      <remove statusCode="406" subStatusCode="-1" />
      <remove statusCode="405" subStatusCode="-1" />
      <remove statusCode="404" subStatusCode="-1" />
      <remove statusCode="403" subStatusCode="-1" />
      <remove statusCode="401" subStatusCode="-1" />
      <remove statusCode="400" />
      <error statusCode="400" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\bad_request.html" />
      <remove statusCode="407" />
      <error statusCode="407" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\proxy_authentication_required.html" />
      <remove statusCode="414" />
      <error statusCode="414" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\request-uri_too_long.html" />
      <remove statusCode="415" />
      <error statusCode="415" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\unsupported_media_type.html" />
      <remove statusCode="503" />
      <error statusCode="503" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\maintenance.html" />
      <error statusCode="401" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\unauthorized.html" />
      <error statusCode="403" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\forbidden.html" />
      <error statusCode="404" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\not_found.html" />
      <error statusCode="405" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\method_not_allowed.html" />
      <error statusCode="406" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\not_acceptable.html" />
      <error statusCode="412" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\precondition_failed.html" />
      <error statusCode="500" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\internal_server_error.html" />
      <error statusCode="501" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\not_implemented.html" />
      <error statusCode="502" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\bad_gateway.html" />
    </httpErrors>
    <rewrite>
      <rules>
			<rule name="WordPress: https://shopalway.co.za" patternSyntax="Wildcard">
				<match url="*" />
					<conditions>
						<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
						<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
					</conditions>
				<action type="Rewrite" url="index.php" />
			</rule></rules>
    </rewrite>
  </system.webServer>
</configuration>

我已经安装了ssl证书,最近也允许加密。

使用plesk onyx17.8.11 Windows共享托管

img1 <-单击图像错误链接

img2 <-单击图像错误链接

img3 <-单击图像错误链接

img4 <-单击图像错误链接

1 个答案:

答案 0 :(得分:-1)

重定向问题:

https://shopalway.co.za/正在运行 但错误仅在http://shopalway.co.za/上显示 *表示您具有 SSL https://www.sslshopper.com/ssl-checker.html#hostname=https://shopalway.co.za/

解决方案:在.htaccess文件中添加以下行:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}