Jump to content

Friendly URL - images from modules not shown


Recommended Posts

with friendly URL enable, images from modules are not loaded

only works on homepage and categories


modules affected:

toppagepeel - doesn't load image in product pages
wiznav - menu not displayed corectly (is going in header as links) in product pages

blockadvertising - doesn't load image in product page

help wanted, thanks !

Link to comment
Share on other sites

this is sometimes caused by the .htaccess not being correctly written,

check its like this

# URL rewriting module activation
RewriteEngine on
AddType x-mapp-php5 .php

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

the number 1 s at the beginning are actually hashes.

can you tell me how you solved the block advertising pronlem, I have it too.
Thanks
John

Link to comment
Share on other sites

not working at all with your .htaccess
very nervous about this issue, no one help


- block advertising :

1 - copied /modules/blockadvertising/advertising.jpg to (root)/img
2- modify in /modules/blockadvertising/blockadvertising.php like:

$this->name = '';

and

$smarty->assign('image','/img' .$this->name.'/advertising.jpg');


ROMANIA

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 1 month later...
  • 1 year later...
×
×
  • Create New...