简体   繁体   English

403错误与plesk和wordpress错误被禁止

[英]403 error with plesk and wordpress error forbidden

i want to link my website to a woocomerce extension called shopmaster 我想将我的网站链接到名为shopmaster的woocomerce扩展程序

but when insert my link and click on connect im getting this error i have tried everything 但是当插入我的链接并单击connect im时出现此错误,我已经尝试了一切

Forbidden You do not have permission to access this document. 禁止您无权访问此文档。 Web Server at shopalway.co.za Web服务器位于shopalway.co.za

things i have tried! 我尝试过的东西!

  1. making sure my post name is correct 确保我的职位名称正确
  2. enabled directory browsing 启用目录浏览
  3. setting file and folder to 755 filezilla 将文件和文件夹设置为755 filezilla
  4. i even created a folder called httacces 我什至创建了一个名为httacces的文件夹
  5. clearing coockies 清鸡
  6. contacting webhost they say nothing is wrong 联系虚拟主机,他们说没什么不对
  7. made sure rest api is enabled 8.deleted all files reinstalled wordpress 确保已启用rest api 8.删除所有文件,重新安装wordpress
  8. even changed the web.config file in code from false to true hope to let it make a difference 甚至将代码中的web.config文件从false更改为true希望让它有所作为

 <?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> 

i have installed ssl certificate let encrypt recently as well. 我已经安装了SSL证书,最近也让它加密了。

using plesk onyx17.8.11 windows shared hosting 使用plesk onyx17.8.11 Windows共享主机

img1 <--Click links for image errors img1 <-单击图像错误的链接

img2 <--Click links for image errors img2 <-单击图像错误的链接

img3 <--Click links for image errors img3 <-单击图像错误的链接

img4 <--Click links for image errors img4 <-单击图像错误的链接

Redirection issue: 重定向问题:

https://shopalway.co.za/ is working but the error is shown onely on http://shopalway.co.za/ * that mean that you have an SSL : https://www.sslshopper.com/ssl-checker.html#hostname=https://shopalway.co.za/ https://shopalway.co.za/正在运行,但该错误仅在http://shopalway.co.za/上显示 *表示您具有SSLhttps ://www.sslshopper.com/ssl- checker.html#hostname = https://shopalway.co.za/

SOLUTION : Add these lines on the .htaccess file: 解决方案 :在.htaccess文件中添加以下行:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM