SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Mod Rewrite

  1. #1
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,873
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)

    Mod Rewrite

    Hi

    I have a php application that makes use of mod_rewrite for its fancy urls.

    What is the easiest way to setup IIS to handle this out of the box without much if any changing of the PHP code?

    As I would really like this code to be interchangable between windows and linux, so preferably, no changes to PHP.

    Is this at all possible?

    PS. I need to do this in both IIS 6 and 7 if possible.

  2. #2
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    For IIS 7 there is URL Rewrite directly from Microsoft:
    http://www.iis.net/download/URLRewrite
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,031
    Mentioned
    152 Post(s)
    Tagged
    2 Thread(s)
    There is also ISAPI Rewrite.
    Version 3 has basically the same syntax as apache's mod_rewrite, with a few minor differences.
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  4. #4
    SitePoint Member
    Join Date
    Mar 2010
    Location
    Redmond, WA
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NightStalker-DNS View Post
    Hi

    I have a php application that makes use of mod_rewrite for its fancy urls.

    What is the easiest way to setup IIS to handle this out of the box without much if any changing of the PHP code?

    As I would really like this code to be interchangable between windows and linux, so preferably, no changes to PHP.

    Is this at all possible?

    PS. I need to do this in both IIS 6 and 7 if possible.
    You can't use URL Rewrite for IIS6. URL Rewrite module was only possible because we rewrote IIS from scratch for IIS 7.

    For IIS 6 there are a few ISAPI options available. Here's one you can try out that's free and open source too, http://iirf.codeplex.com/

    For IIS7 you can use URL Rewrite and you can also import existing mod_rewrite rules in .htacess from Apache. Here's an article describing that here, http://learn.iis.net/page.aspx/470/i...rewrite-rules/

    -Mark
    Mark Brown
    Web Platform Team - Microsoft Corporation
    Web: microsoft.com/web
    Twitter: markjbrown


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •