3
I am facing this problem with my friendly URL, even putting the absolute path it does not show the images.
But the images that are in a folder in the same location of .htacess
appear normally, the ones that do not appear are the ones that are in the following directory admin/imgsupload
.
I have also tried to use another configuration in htacess and the base tag, but without success, remembering that you are only giving this problem in the images in the directory admin/imgsupload
, which is in the same folder as the .htacess
works normally.
Follow the codes of my htacess and how I’m putting the images:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /projetolcj/
RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|jpeg|png|js|css|swf|ico|txt|pdf|xml|woff)$
RewriteRule ^ - [L]
RewriteRule ^(.*) url.php
</IfModule>
Img:
<img src="/projetolcj/admin/<?php echo $linha["imagem"]; ?>" alt="parceiro" class=" thumbnail img-responsive">
possible duplicate of User-friendly URL using HTACCESS
– KaduAmaral
Vintages, do pages work normally? Try using the parameters
RewriteCond %{REQUEST_FILENAME} !-d
andRewriteCond %{REQUEST_FILENAME} !-f
instead of that regular expression.– KaduAmaral
I tried that way and it didn’t work, yes all pages work normally...
– Vinicius Zable
Take a look here: http://answall.com/questions/53973/url-amig%C3%A1vel-como-fazer-funcionar-com-htaccess/86900#86900
– Ivan Ferrer
Only what you are doing is quite the opposite: created a conditional to deny any "file" containing the extensions
(jpg|gif|jpeg|png|js|css|swf|ico|txt|pdf|xml|woff)
.– Ivan Ferrer
I tried to change that, and it didn’t work either...
– Vinicius Zable