Cannot get Rewrite to Work

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 12
Joined: 09 Aug 2012, 09:51

Re: Cannot get Rewrite to Work

16 Aug 2012, 10:07

Hello,

Agreed with the rewriteUrl variable containing "MySite/sub_site".

There was a double registration of the ISAPI_Rewrite, but unfortunately it did not resolve my issue and nothing has changed. I also made sure that I had it in the correct ISAPI filters tab.

I believe that we are using IIS 5.1

Thank you.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Cannot get Rewrite to Work

16 Aug 2012, 10:57

- So, does rewriteUrl variable now contain "MySite/sub_site"?

- And the rule you use now is RewriteRule /MySite/sub_site/.* /MySite/ [I,L] ?

- Have you done iisreset after making changes to ISAPI_Rewrite registration?

- If you put the following rule into your config:

RewriteRule /testtest/? http\://www.google.com [I,RP]

and request yoursite.com/testtest, what result do you get?

User avatar
Posts: 12
Joined: 09 Aug 2012, 09:51

Re: Cannot get Rewrite to Work

16 Aug 2012, 11:18

Sorry, I can see that my last reply could have been a bit confusing.

-It does show rewriteUrl variable as "/MySite/sub_site/".

-I originally had RewriteRule /MySite/sub_site/.* /MySite/ [I,RP] but i changed it to RewriteRule /MySite/sub_site/.* /MySite/ [I,L] and that, combined with the double registration was what was making the rewriteUrl not work. I also had to change it to "MySite/sub_site" because the files would not read sub_site/.xml and sub_site/.xsl.

Everything works! Thank you so much! You have no idea how much of a pain it has been trying to get it to work! Thank you again!

Previous

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 8 guests