Conversion of ISAPI_Rewrite rules to *nix .htaccess

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 2
Joined: 22 May 2012, 08:59

Conversion of ISAPI_Rewrite rules to *nix .htaccess

22 May 2012, 09:07

Hi, all.

I have a client trying to migrate a project from a Windows box to a *nix box, and (me not being a nix guy), I'm not able to properly address his questions regarding write rules within his .htaccess file.

Are there are tools, docs, forum posts, etc. that outline the key differences between the two files/formats?

Here are a few of the rules within our httpd.ini file; if there are any notable differences in how these would look within an .htaccess file, I'd love to know them...

RewriteRule ^/search/keyword/(.+)\?(.+)$ /search.php?type=keyword&kw=$1&options=$2 [I,L]
RewriteRule ^/search/keyword/(.+)$ /search.php?type=keyword&kw=$1&options=p,f,t,g [I,L]

Any insight is greatly appreciated!

--jp

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Conversion of ISAPI_Rewrite rules to *nix .htaccess

22 May 2012, 09:34

Hello,

ISAPI_Rewrite 2 supports only httpd.ini and no .htaccess files.
In order to pursue .htaccess files you need to use ISAPI_Rewrite. It has different syntax, but uses both types of formats.

Regards
Andrew

User avatar
Posts: 2
Joined: 22 May 2012, 08:59

Re: Conversion of ISAPI_Rewrite rules to *nix .htaccess

22 May 2012, 09:50

Thank you for your response, Andrew. Perhaps I wasn't clear. I have an httpd.ini file being used by ISAPI_Rewrite 2 on a Windows box. We are moving a site on the Windows box to a nix box, and we need to convert the Rewrite rules we currently have in place with Isapi_Rewrite to something Apache can use on the nix box.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 8 guests