Rewriting questions

Topics: Developer Forum
Apr 12, 2011 at 2:40 PM

Hi all,

I approached IIRF since few days, great.
Now I'm doing a rule that should rewrite the following address:  -->

The rewriting engine works well, but...i don't understand a little thing: in the page I have some links like " <script src="include/pngfix/unitpngfix.js"></script> " or " <link href="filestyle.css" rel="stylesheet" type="text/css" /> " that don't link the original position, but point to

This is a strange thing: How can I solve?

This is my IIRF.ini

RewriteLogLevel 1

RewriteLog F:\iirf\iirf

RewriteEngine ON

StatusInquiry ON 


RewriteMap  productmap  txt:F:\foldername\subfolder1\map\mappa3.txt

RewriteRule ^/aaaaa/bbbb/ccccc/(.*)   ${productmap:$1|http://grafamu-web2:82/error.asp?err=$1}  [L]


Apr 13, 2011 at 1:05 PM

> This is a strange thing: How can I solve?

What is it that you want to solve?   What do you want to occur?

I understand the information you have provided. I don't understand what you want to occur.

Please be explicit.

Apr 13, 2011 at 2:16 PM

Ops, cheeso, I read again my post and I noticed myself that was lack of informations.
First of all, I apologize for my english...

I made some steps forward and I noticed these:

a) if I point to localhost/index.asp , the CSS works well, because it's in the root and pointed with href='style.css'.

b) if I point to localhost/state/region/province/city, it goes to index.asp as well, but the CSS doesn't work, because it seems to be searched by the browser at localhost/state/region/province/city/style.css.

The problem is this: every included file in the index.asp page, when it's URL forwarded, doesn't work.
Probably it's a simple error, because I'm a noob in IIRF, but.... I can bypass this problem only pointing the CSS to href=''  ???
It wouldn't be a great solution for me, beacuse I need to work with it also in local host.

Apr 13, 2011 at 3:44 PM

yes, I think your href="style.css" should be href="/style.css"

The / tells the browser to use the "root" of the URL, not the relative path.