Solved

isapi rewrite 3 not working

Posted on 2010-09-23
4
1,300 Views
Last Modified: 2012-05-10
I have just moverd to isapi rewrite 3 on a new laptop with IIS7, windows 7 64bit (previously windosws xp pwith IIS6) and ca'n't seem to get it working. I have one simple rewrite in my test.

 here is my entire httpd.conf file using to test

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
LogLevel debug
RewriteLogLevel 9

RewriteRule ^company /index.cfm?action=home.company [NC,L]

in the log file I am getting
127.0.0.1 127.0.0.1  Thu, 23-Sep-2010  17:11:52 GMT [127.0.0.1/sid#1][rid#18893128/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
127.0.0.1 127.0.0.1  Thu, 23-Sep-2010  17:11:52 GMT [127.0.0.1/sid#1][rid#18893128/initial] (3) applying pattern '^company' to uri '/ARAXI_DEV_new_site/wwwroot/company'



it doesn't look like any rewriting is getting done. what am I missing?

0
Comment
Question by:Shawn
  • 2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Brad Howe
ID: 33750152
Hi,
Add your default rewritebase
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase /
LogLevel debug
RewriteLogLevel 9

RewriteRule ^company /index.cfm?action=home.company [NC,L]  
You rule works fine.. I test it and got a 404 as expected but it works nevertheless.
::1 ::1 Thu, 23-Sep-2010 20:46:43 GMT [localhost/sid#1][rid#19782248/initial] (2) init rewrite engine with requested uri /company
::1 ::1 Thu, 23-Sep-2010 20:46:43 GMT [localhost/sid#1][rid#19782248/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
::1 ::1 Thu, 23-Sep-2010 20:46:43 GMT [localhost/sid#1][rid#19782248/initial] (3) applying pattern '^company' to uri 'company'
::1 ::1 Thu, 23-Sep-2010 20:46:43 GMT [localhost/sid#1][rid#19782248/initial] (1) Rewrite URL to >> /index.cfm?action=home.company
::1 ::1 Thu, 23-Sep-2010 20:46:43 GMT [localhost/sid#1][rid#19782248/initial] (2) rewrite 'company' -> '/index.cfm?action=home.company'
::1 ::1 Thu, 23-Sep-2010 20:46:43 GMT [localhost/sid#1][rid#19782248/initial] (2) internal redirect with /index.cfm?action=home.company [INTERNAL REDIRECT]
Give it a go, Hades666
0
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 33750182
WOW!! is that bad english... Sorry
Your rule works fine.. I just tested it and got a 404 as expected, but it works nevertheless.

By the way, my default platform is iis7.5 on Windows7.
Sorry, Hades666
0
 
LVL 1

Author Comment

by:Shawn
ID: 33750936
mine shows
 applying pattern '^company' to uri '/ARAXI_DEV_new_site/wwwroot/company'

yours shows
applying pattern '^company' to uri 'company'

i don't know enough about isapi but isn't this a little different?
0
 
LVL 1

Author Comment

by:Shawn
ID: 33751072
ok I just tried this and it worked
http://127.0.0.1:8002/company
so added this and presto
RewriteBase /ARAXI_DEV_new_site/wwwroot/

thanks for pushing me in the right direction
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now