dpepbjp126917 2016-08-09 14:20
浏览 47

如何从2级文件夹工作图像

I have a problem with my queries doesnt work the image of the source, so i have root/travel-page.php in the root folder and on the query i want put a image from root/travel/imagini/picture.jpg .. i putted all the html link http://exemple.com/travel/imagini/picture.jpg , but doesnt work

the page.php i redirectionat using htacces in travel/queryLink.php

So my question is if i can do something to make those image to appear if is 2 level of folder diference between the page and the image

if i try to call the image from root/images/picture.jpg - is work.. because is only a level between thoose.

RewriteRule ^travel/([0-9a-zA-Z_-]+) ./page.php?pid=$1 [NC,L]
  • 写回答

1条回答 默认 最新

  • dpo60833 2016-08-09 16:03
    关注

    I FIXED the problem, maybe someone will have the same problem with the image what not show after the RewriteRule

    i needed to add RewriteCond %{REQUEST_FILENAME} !-f

    so the right code is this...dont forget to request the filename how i did it.

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^travel/([0-9a-zA-Z_-]+) ./page.php?pid=$1 [NC,L]
    
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度