允许访问图片文件夹以查看图片的.htaccess文件?

55 浏览
0 Comments

允许访问图片文件夹以查看图片的.htaccess文件?

我在以下URL上有一个图片文件夹。

www.mysite.com/uploads/

在另一个页面上:

www.mysite.com/search.php/

我试图访问这些图片,使用正确的标签链接,但是我得到了以下错误信息:

Forbidden
You don't have permission to access /uploads/ on this server. 

所以我开始尝试使用一个.htaccess文件,并且我完全不知道自己在做什么,我尝试查看一些文档但没有成功,我甚至从另一个问题中拷贝了一个例子..下面是我的.htaccess文件的样式:


Order allow,deny
Allow from all


# All access controls and authentication are disabled
# in this directory
Satisfy Any
Allow from all

有没有办法让它允许访问那个文件夹?

0