SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast turkey's Avatar
    Join Date
    May 2006
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Server Configuration with ISAPI Rewrite

    Hello,

    Currently, my hosting provider is running a windows server on IIS 6. Recently, I purchased a script that I wanted to use for a project management type thing. After the install, I am supposed to have a web based portal where I can login and set everything up. When I go to the url I setup, it only displays a blank page, no login. So I contacted the developer and they sent me a web.config file with the configuration(below) to use. Unfortunately, I could not use a web.config file due to the older version of IIS 6. The workaround was to get ISAPI Rewrite according to my hosting provider and they also gave me access to the httpd.conf file.

    So,

    My question is, how do I apply this configuration below to the folder where my project management script is so that I can get it working? Lets say that my folder is in a directory structure like:
    /one/two/three/projectfolder

    Thanks for your help!

    Code:
    <?xml version="1.0"?>
    <configuration>
    <system.webServer>
    <defaultDocument>
    <!-- Set the default document -->
    <files>
    <remove value="index.php" />
    <add value="index.php" />
    </files>
    </defaultDocument>
    <httpErrors errorMode="Detailed"/>
    <rewrite>
    <rules>
    <rule name="Main Rule" stopProcessing="true">
    <match url=".*" />
    <conditions logicalGrouping="MatchAll">
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    </conditions>
    <action type="Rewrite" url="index.php" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,649
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    FWIW, I would just bite the bullet and upgrade to IIS7 and get baked in URL rewrites and a boatload of other features. IIS6 / Windows Server 2003 is 11 years old and almost out of support at this point.

    IIRC ISAPI Rewrite uses rules similar to mod rewrite, so if your project management app has such rules you can start with the .hataccess file they likely provide.

  3. #3
    SitePoint Enthusiast turkey's Avatar
    Join Date
    May 2006
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your reply. As much as I would like to do an upgrade its like pulling teeth when trying to get this company to understand the importance of keeping up to date with programs. At the moment I would like to try and make this work over using another program that I think is a bit lacking (which I may have to do but I am trying). I put the .htaccess file in the root of my project folder projectfolder>.htaccess but I still get a blank screen when trying to login. So I am trying to figure out, how to use the code above properly to get it working.

  4. #4
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,649
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The magic words are "Thanks, I guess it is time I find a new hosting proider then . . ."

    You can't use the .htaccess directly, you can use the syntax in the isapi_rewrite.ini or whatever they tell you to call that file if memory serves.

  5. #5
    SitePoint Enthusiast turkey's Avatar
    Join Date
    May 2006
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone else have input on this? Would really appreciate the help. Thanks.


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
  •