Lorenzo De Bie
Lorenzo De Bie

Reputation: 37

IIRF url rewriting with IIS 6

I want to rewrite this url:

"www.mydomain.com/myproject/index.php?function=demo"

to

'www.mydomain.com/myproject/home/demo'

and I have this code in my iirf.ini file:

RewriteEngine on
StatusInquiry On  /iirfSatus
RewriteLog c:\Inetpub\
RewriteLogLevel 3
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/myproject/home/(.*)$ /myproject/index.php?function=$1 [L]

I still get a 404 error when I surf to the second link, and I don't know why. Any help would be appreciated!

Upvotes: 0

Views: 666

Answers (1)

Lorenzo De Bie
Lorenzo De Bie

Reputation: 37

I found the problem myself after another hour of searching the web: The problem was that my Iirf.ini file was in the wrong folder. It was in the wwwroot instead of my project folder. It works fine now

Upvotes: 0

Related Questions