清洁网址和放大器;图片上传 [英] Clean URL & Image Upload
问题描述
我已经张贴这在Drupal的论坛。目前,我有问题,上传图片,并用干净的URL的网站上。
I have already posted this in a Drupal forum. I currently have problems with uploading images and using clean urls on the site.
在我的图像上传到文章页面,然后我点击刷新,查看网页,图像不会出现。我检查了图像的URL和一个例子网址是:
When I upload an image to an article page and then I click refresh to view the page, the image doesn't appear. I check for the image url and an example url would be:
http://example.com/网站/默认/文件/风格/大/公/场/图像/ 01.jpg
但如果我修改URL地址栏上的图像会出现:
but the image would appear if I modify the url on the address bar to:
的http://example.com/?q=sites/default/files/styles/large/public/field/image/01.jpg
我曾尝试:
- 接通和断开清洁网址(有时图像出现,但随后 他们再次消失)
- 在.htaccess文件修改重写规则
- 文件夹的权限
- turning on and off clean urls (sometimes the images appear, but then they disappear again)
- modifying rewrite rules in the the .htaccess file
- folder permissions
这件事发生时,我上传我的网站Apache服务器和URL的变化,但我的计算机上本地做,该URL不会改变。
This happened when I uploaded my site to an apache server and the url changes, but doing it locally on my computer, the url don't change.
推荐答案
我去另一个方向与我的照片,但我想通了呢。我所要做的就是删除.htaccess文件在网站/默认/文件。
I went on another direction with my photos but I figured it out anyway. All I had to do was to delete the .htaccess file in the site/default/files.
这篇关于清洁网址和放大器;图片上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!