403禁止:权限访问图像 [英] 403 forbidden: permission to access images

查看:105
本文介绍了403禁止:权限访问图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在建立一个网站的新版本的Word preSS和尝试添加一些图片作为正常的引用都是由CSS和放大器; HTML。古怪它让我添加多个图像,例如标志等等然而,当我尝试添加一些图片它给禁信息如下。图像不会出现任何及以下禁消息显示当我转到图像的路径。

I'm currently building a new version of a site in Wordpress and trying to add a few images as normal to be referenced both by CSS & HTML. Weirdly it's allowed me to add several images like the logo etc yet when I try to add a few more images it's giving the forbidden message below. The image doesn't appear either and the forbidden message below shows when I goto the path of the image.

禁止

您没有权限访问   /v2/wp-content/themes/default/images/contact-yellow-icon.png这个   服务器。此外,遇到一个404 Not Found错误,而   试图使用ErrorDocument来处理请求。

You don't have permission to access /v2/wp-content/themes/default/images/contact-yellow-icon.png on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

我以前从未有过这个问题出了其他几个WP网站我设置。可能是什么问题?

I've never had this problem before out of the several other WP sites I've setup. What could be the problem?

如果我把路径到另一个图像,然后它工作正常(http://www.domain.com/v2/wp-content/themes/default/images/contact-innovation-logo.png)所以不要'知道为什么它不会允许我访问其他的图像!?

If I put in the path to another image then it works fine (http://www.domain.com/v2/wp-content/themes/default/images/contact-innovation-logo.png) so don't know why it won't allow me to access the other images!?

推荐答案

您应该检查文件权限/v2/wp-content/themes/default/images/contact-yellow-icon.png

you should check file permissions for /v2/wp-content/themes/default/images/contact-yellow-icon.png

我想他们应该是644,这样都可以读取该文件

i think they should be 644 so that all can read that file

或者您可以检查/v2/wp-content/themes/default/images/contact-innovation-logo.png的文件权限

or you can check file permissions of /v2/wp-content/themes/default/images/contact-innovation-logo.png

您可以更改权限使用FTP经理或壳

you can change permissions with ftp manager or with shell

**更新由埃里克·勒罗伊 如果文件权限644不起作用,更改为755,这就是我来解决这个问题。如果你不熟悉如何根据* INX做到这一点,和Mac系统,这里是如何: 打开终端并导航到图片的父文件夹。 输入sudo搭配chmod -R 775(然后键入您的图像的名称后,775文件夹) 它会询问您的密码,那么你的图像将努力在您的网站。

** updated by Eric Leroy if file permissions 644 does not work, change to 755 that is what I used to fix the issue. If you are not familiar on how to do this on *inx based, and mac systems, here is how: Open terminal and navigate to the parent folder of the images. type sudo chmod -R 775 (then type the name of your images folder after 775 ) it will ask you for your password, then your images will work on your website.

这篇关于403禁止:权限访问图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆