This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite for IIS6
Author
Message |
maggi
Newbie


Joined: 20 October 2010
Location: United States
Posts: 3
Posted: 21 October 2010 at 8:14am

How do I get Rewrite rule for IIS6?

How to configure with IIS6?

Where to place the httpd.ini file?

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 21 October 2010 at 9:50am

All useful information can be found at documentation

Quote:
How do I get Rewrite rule for IIS6?
How to configure with IIS6?

All essential rules can be found in in examples

Quote:
Where to place the httpd.ini file?

as it's in documentation:
Quote:
There are two types of configuration files - global (server-level) and individual (site-level) files. The global configuration file should be
named httpd.ini and should appear in the ISAPI_Rewrite installation directory. The shortcut of this file is provided through the start menu. The
individual configuration files should be named httpd.ini and could appear in physical root directories of virtual sites. All configuration files have
the same format. And it is the format of a standard Windows INI file where settings are broken by sections. The only section allowed in this version of
ISAPI_Rewrite is [ISAPI_Rewrite]. All directives should be placed in this section and each directive should be placed on a separate line. Any text
outside this section will be ignored.


Regards
Andrew
Back to Top
 
maggi
Newbie


Joined: 20 October 2010
Location: United States
Posts: 3
Posted: 21 October 2010 at 12:43pm

Thanks for Your Reply.

 

Configured httpd.conf file globally.(Is httpd.conf correct or is it httpd.ini?)

But have a problem with rewrite rules

In apache under .htaccess file when I place the following Rules it works fine

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

 

Same rules if I copy under httpd.conf in IIS its not working.

 

when I replace RewriteRule ^.*$ index.php [NC,L] with

RewriteRule ^.*$ /index.php [NC,L]

Redirecting to index.php correctly. but what about the other rules????

Any ideas???


 

 

 

 

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 22 October 2010 at 4:00am

It's httpd.ini that you need.
IT is ISAPI_rewrite that uses httpd.conf and .htaccess.


Quote:
when I replace RewriteRule ^.*$ index.php [NC,L] with
RewriteRule ^.*$ /index.php [NC,L]
Redirecting to index.php correctly. but what about the other rules????


Slash in this case was needed indeed.
Other rules are not working, because there's no such expression as %{REQUEST_FILENAME} in documentation.

It seems like the syntax of the rules is more suitable for ISAPI_Rewrite 3 and not 2.

Regards
Andrew
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 22 October 2010 at 4:03am

And one more thing, please, stop creating additional tickets with the same issue. One issue at a time.

Thank you for your understanding.
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum