This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Windows 2003, Ape3 + ISAPi/Rewrite
Author
Message |
jaygreasley
Newbie


Joined: 07 December 2010
Posts: 7
Posted: 07 December 2010 at 6:20am

Hi,

I have Windows Server 2003 with a legacy ASP application.
I installed Ape3 (build 57) to rewrite the url to be SEO friendly.
I also have Wordpress installed in a subdirectory of \blog.
I want to set up SEO friendly URL's for this also, so follow http://theandystratton.com/2009/get-wordpress-permalinks-working-with-windows-iis-and-isapi-rewrite

Firstly I configure Ape.

ape.htaccess:
RewriteEngine On


RewriteCond %{REQUEST_URI} !^/(blog/.*)$
RewriteRule ([0-9]+) http://<domain>.co.uk/chalet_details.asp?cid=$1 [L]

This works fine.

I then set up ISAPI/Rewrite with .htaccess in the blog subdirectory:


RewriteEngine On
RewriteBase /blog
#RewriteCond %{REQUEST_URI} /(blog/.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]

This works. However after about an hour my website goes down.
I check IIS and w3wp has faulted a lot and because of this the app pool is disabled.

Is this a known issue?
Any ideas?
Given my rewrite rules could I use Ape 3 to do everything? This may solve the issue as it *seems* to only happen after installing ISAPI/Rewrite as well.


TIA

Jay

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 07 December 2010 at 6:47am

Of course Ape can deal with both cases.
You may uninstall ISAPI_Rewrite, but leave the .htaccess it was using in the blog directory without any modifications.
Ape will see and process it.

BTW, do you have AccessFileName directive in Ape httpd.conf? If yes, comment it out and name all configs as ".htaccess".

__________________
Regards,
Anton
Back to Top
 
jaygreasley
Newbie


Joined: 07 December 2010
Posts: 7
Posted: 07 December 2010 at 6:59am

Hi Anton,

Thank you for the prompt reply.
Excellent, I shall try just using Ape.
I only went with ISAPI/Rewrite as well because I am unsure whether the WordPress plugin explicitly requires it (as opposed to any rewriting product).

I do have AccessFileName set in the Ape httpd.conf (ape.htacess) so that Ape only processes that file.
Presumably I only comment that out and rename all configs if I uninstall ISAPI/Rewrite?

Thanks

Jay
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 07 December 2010 at 7:04am

"Presumably I only comment that out and rename all configs if I uninstall ISAPI/Rewrite?"
- exactly. Simply rename your ape.htaccess to .htaccess.

__________________
Regards,
Anton
Back to Top
 
jaygreasley
Newbie


Joined: 07 December 2010
Posts: 7
Posted: 07 December 2010 at 7:57am

Thanks.
This seems to stop the WP plugin working.
The plugin just uses $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];

On IIS6 does this not work?

Cheers

Jay
Back to Top
 
jaygreasley
Newbie


Joined: 07 December 2010
Posts: 7
Posted: 07 December 2010 at 8:00am

ahh, right. That Header is added by ISAPE_Rewrite. Is it not added by Ape? Is it an IIS6 problem? Is an IIS6 app pool 'classic' and Ape requires integrated for some functionality?

tia
Back to Top
 
jaygreasley
Newbie


Joined: 07 December 2010
Posts: 7
Posted: 07 December 2010 at 8:21am

So, I need ISAPI_Rewrite to do  $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];

Can I just use ISAPI_Rewrite instead of Ape?

Any downsides? Will it be supported for the forseeable future?

tia

Jay
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 08 December 2010 at 2:24am

"Is an IIS6 app pool 'classic' and Ape requires integrated for some functionality?"
- yes, Ape requires Integrated mode for flawless operation.

"Can I just use ISAPI_Rewrite instead of Ape?"
- yes, your config may be used in ISAPI_Rewrite.

"Will it be supported for the forseeable future?"
- yes, it will be supported for quite a long while.

__________________
Regards,
Anton
Back to Top
 

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

Printable version Printable version