Jump to content

mod_rewrite and images


cxer

Recommended Posts

hi,

 

i wrote some rules at below but my images are not viewing,i dont find why,

if i use only one parameter this rules work

 

RewriteEngine On

RewriteRule ^prefabrik/images/(.*)$  images/$1

RewriteRule ^prefabrik/swf/(.*)$      swf/$1

RewriteRule ^prefabrik/pix/(.*)$      pix/$1

RewriteRule ^prefabrik/menu/(.*)$    menu/$1

RewriteRule ^prefabrik/pages/(.*)$    pages/$1

RewriteRule ^prefabrik/(.*).html      index.php?id=$1

 

but if wantto use two parameter my images,css and swf files are not viewing

 

RewriteEngine on

RewriteBase /

RewriteRule ^prefabrik/*/images/(.+)$ images/$1 [L]                          ----->problem is here,

RewriteRule ^prefabrik/([^/.]+)/([^/.]+)/?$ index.php?id=$1&pl=$2

 

the * is the problem what can i write to see my images in my pages.

 

are there anybody help me to solve my problem?

 

Thank you very muck.

Link to comment
https://forums.phpfreaks.com/topic/40591-mod_rewrite-and-images/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.