| Posted: 07 February 2012 at 6:05am | IP Logged
|
|
|
Hi guys,
I have just moved my site from apache with mod_rewrite to IIS6 with isapi_rewrite v.2.
I have the following urls: http://www.sub.domain.com/nyf/unique-name http://www.sub.domain.com/nyf/unique-name/ http://www.sub.domain.com/nyf/unique-name/another-unique-name http://www.sub.domain.com/nyf/unique-name/another-unique-name/ etc.
I want all URL's to be redirected to: http://www.sub.domain.com/nyf/index.php
which will check if the unique-name is a category, product, article etc.
The rules I used for mod_rewrite was
RewriteEngine on RewriteRule !\.(gif|jpg|png|css)$ index.php
For isapi_rewrite I use the following rules:
[ISAPI_Rewrite] RewriteRule (.*/nyf.*) /nyf/index.php/$1 [L]
My problem is that css and images disappears. If I right click on a image and press properties I can see the href of the image. Fx. http://www.sub.domain.dk/nyf/images/image.png
I have checked and the image exists on that specific path, but the image is not shown on the page. Why is that? And how can I change my rules so it will show the pictures?
Thank you very much in advance. /Kenneth
|