Need support with a redirect rule

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 12 Aug 2013, 11:48

Need support with a redirect rule

12 Aug 2013, 12:01

Hello everyone,

I need support for creating a redirect rule for a sharepoint site.

We tried your redirect example:

[ISAPI_Rewrite]
# Proxy all requests through proxy.asp
RewriteRule /members(.+) /proxy.asp\?http\://mysite.com/members$1

and replaced it with our links:

RewriteRule /Lists/Management\sList(.+) /Lists/Management\sList/Proxy.aspx\?http\://qnet-osp/Lists/Management\sList$1

We have created Proxy.aspx with our specific conditions (and is functional, tested separately), but when the rewrite is active, the redirect is not working at all.

Our sharepoint list address is:
http://qnet-local/Lists/Management List/

The space character used (\s) is returning an "s" in the Regexp Test tool , instead of blank space.How can we put the spaces corectly , and please tell me if the links in the rewrite rule are correct according to our sharepoint list address.
Also i have to mention that Proxy.aspx is located under /Lists/Management List/ and we are using the lite version of Isapi Rewrite 3.

Thank you in advance, and i'm waiting for your advices.

Have a nice day!
Andrew.

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

Re: Need support with a redirect rule

13 Aug 2013, 06:13

Hello, Andrew

You didn't mention what version of ISAPI_Rewrite you are using, but you posted your question in v3 section, so I assume this is what you've got.
And if it's indeed v3, then the syntax should be different:

RewriteBase /
RewriteRule ^Lists/Management\sList(.+)$ /Lists/Management\sList/Proxy.aspx\?http\://qnet-osp/Lists/Management\sList$1 [NC,P]

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 26 guests