.htaccess on IIS ??

Discussion in 'Site & Server Administration' started by TheOwner, Jun 2, 2008.

  1. #1
    I am using a script, on which i want to enable friendly URL, below are the instructions.

      Friendly URLs Settings
     Apache Settings
    
     (please add the following lines to your
     .htaccess file to turn on friendly URLs) 	
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /hcl/friendly_url.php [L]
    </IfModule>
    
    Code (markup):

    But, issue is, i am using IIS on Windows Server.

    How can i implement this ? :confused:
     
    TheOwner, Jun 2, 2008 IP
  2. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mellow-h, Jun 2, 2008 IP
  3. TheOwner

    TheOwner Active Member

    Messages:
    816
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Hello,

    I installed http://www.helicontech.com/isapi_rewrite/

    Now i entered these lines in .htaccess ( self - created ) and even httpd.ini ( system created )

    Still i can not use friendly URLs

    Kindly help over...
     
    TheOwner, Jun 2, 2008 IP
  4. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #4
    You can not simply copy the mod_rewrite rule in httpd.ini file. Isapirewrite and mod_rewrite have their own rules to write the rules. If you use mod_rewrite rule in ISAPI rewrite rule then it will not work. You will need to change the rules.

    I am not much more aware with how to write isapirewrite rules else I will provide few guidelines.

    Kailash
     
    kailash, Jun 8, 2008 IP