views:

266

answers:

0

Besides being a horrible programmer I can't make proper use of Google. I am making a small web site and it uses IIS7 rewrite rules. It all worked good for me until now when I need to migrate it all to Apache and its rewrite rules.

Are there tools that can convert ISS rewrite rules (they are XML in web.config) to apache rewrite rules.

In fact, they are fairly simple:

  • www.example.com/foowww.example.com/index.php?page=foo
  • www.example.com/foo/barwww.example.com/index.php?page=foo&galleryId=bar

Anything under www.example.com/lib, www.example.com/oO and www.example.com/oOo needs to be ignored - they contain the JS, images and CSS files.

If there are no tools for this I will again read the rewrite manual and try sorting this myself but who knows - what if there is a nifty tool that will do this for lazy me.

Thanks!