x.rwhlp rewriteproxy error 404

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 15 Sep 2016, 14:13

x.rwhlp rewriteproxy error 404

15 Sep 2016, 14:16

Hi,

I am trying to figure out why my rule doesn't work :

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.89

#SECTION FIXE
#enable runtime rewriting engine
RewriteEngine on


#set the base URL
RewriteBase /

#if the url is already rewritten, stop the rewrite process
RewriteCond %{REQUEST_URI} /WEMWPVP1_S.* [NC]
RewriteRule .* - [L]


#CONDITION 1
#if the session preference is “S1” rewrite to S1 (default version, context 1)
RewriteCond %{HTTP:CSP-Session-Pref} WExxx=S1
RewriteCond %{REQUEST_URI} /WEMWPVP1.* [NC]
#RewriteRule ^WEMWPVP1(.*) http://we.asmb.xxx.net/WEMWPVP1_S1$1 [NC,P, L]
RewriteProxy ^WEMWPVP1(.*) http://we.asmb.xxx.net/WEMWPVP1_S1$1 [NC,CR,QSA]


I tried with a static html file and it redirected me to the file but with x.rwhlp at the end....

Thanks

User avatar
Posts: 2
Joined: 15 Sep 2016, 14:13

Re: x.rwhlp rewriteproxy error 404

15 Sep 2016, 15:58

We found out maybe the issue. We are putting the .htaccess file Inside a MVC application. When we clear out the folder to leave only the htaccess file, it works. When there is code present there, it fails.

So the question would be more like this : Can we use a htaccess file Inside a mvc application folder ?

Thanks

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: x.rwhlp rewriteproxy error 404

20 Sep 2016, 07:52

Hello.

That is not MVC application itself is matter, that is probably what this application is doing. This could be the application is trying to interpret URL after ISAPI_Rewrite has routed it to the proxy module and then redirects it again, not allowing the proxy to bump in. If you are proxying content from another location anyway why would you need to have an MVC application in there? I think you have two options:
1. Try Ape instead of ISAPI_Rewrite. Ape is using different route mechanism called integrated pipeline and can probably bypass the underlying application interference.
2. Disable application particularly in WEMWPVP1 folder by creating an empty application in there.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 26 guests