0

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

但是当插入我的链接并单击连接时,我得到了这个错误,我已经尝试了一切

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

我试过的东西!

  1. 确保我的帖子名称正确
  2. 启用目录浏览
  3. 将文件和文件夹设置为 755 filezilla
  4. 我什至创建了一个名为 httacces 的文件夹
  5. 清除饼干
  6. 联系虚拟主机,他们说没有错
  7. 确保启用了rest api 8.删除了重新安装wordpress的所有文件
  8. 甚至将代码中的 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>

我最近也安装了 ssl 证书 let encrypt。

使用 plesk onyx17.8.11 windows 共享主机

img1 <--点击图片错误链接

img2 <--点击图片错误链接

img3 <--点击图片错误链接

img4 <--点击图片错误链接

4

1 回答 1

-1

重定向问题:

https://shopalway.co.za/正在工作,但错误仅显示在http://shopalway.co.za/ * 这意味着您有SSLhttps ://www.sslshopper.com/ssl- checker.html#hostname=https://shopalway.co.za/

解决方案:在 .htaccess 文件中添加这些行:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
于 2019-02-20T14:09:21.970 回答