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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.