This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Simple Rewrite Does Not Work
Author
Message |
MarJm
Newbie


Joined: 02 December 2010
Posts: 3
Posted: 02 December 2010 at 1:12pm

I installed Ape, and followed this http://www.helicontech.com/articles/using-helicon-ape-under-iis6-windows-server-2003 since my server is Window 2003 and uses IIS6.

I verified that Ape is working, and also verified that RewriteProxy is working.

However, simple rewrite is not working.  (The page cannot be found.)  It's not even logging the err.log or rewrite.log. 

What am I missing?  Here is all I have in the .htaccess file.

# Helicon Ape version 3.0.0.57

RewriteEngine On
RewriteBase /
RewriteRule ^foo.htm$ test.asp [NC]

Thanks.

Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 02 December 2010 at 4:16pm

Hello.
How did you notice that Ape was working?
Please make sure NTFS permissions allow the application pool user to read .htaccess file.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
MarJm
Newbie


Joined: 02 December 2010
Posts: 3
Posted: 02 December 2010 at 4:34pm

Hello,

I think Ape is working because I followed this page.  http://www.helicontech.com/articles/using-helicon-ape-under-iis6-windows-server-2003

Specifically,  I did this first as instructed.  My site shows "Forbidden".  The site says if it shows Forbidden, that means rewrite is working.
RewriteEngine on
RewriteRule .? - [F]

Then, next, again as instructed, I did this to test RewriteProxy.

RewriteEngine on
RewriteProxy (.*) http://www.helicontech.com/$1 [L]

I got the result as expected.

So, that's why I think Ape is working.

.htaccess file has NTFS permission.

It looks like if there is a real file, it's working. For example,

#RewriteRule ^index.htm$ test.asp [NC]

There is an index.htm page, and if I do http://www.xxx.com/index.htm, then it goes to http://www.xxx.com/test.asp.
But, obviously, this is not what I want.

http://www.xxx.com/foo.htm just displays "The page cannot be found" instead of displaying the content of test.asp.

Any help would be appreciated. I've been trying to make it work all day, and it's not going anywhere.

Thanks.




Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 02 December 2010 at 4:42pm

Make sure you didn’t forget to check off the “Verify that file exists” box when you set up wildcard mapping.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
MarJm
Newbie


Joined: 02 December 2010
Posts: 3
Posted: 02 December 2010 at 4:45pm

Hi, thanks for the quick reply.

Yes, it is checked off.

I noticed there is a typo.  This is what .htaccess file has.

RewriteEngine on
RewriteBase /
RewriteRule ^foo\.htm$ test.asp [NC]

Any idea why this does not work?
Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 02 December 2010 at 4:53pm

Please send me IIS metabase to [email protected]
Thanks.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 

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

Printable version Printable version