Redirect all pages under one site

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 5
Joined: 24 May 2012, 11:41

Redirect all pages under one site

24 May 2012, 11:50

I have been searching forums but can not find the correct syntax for my query:

I have a number of pages under a specific site:

http://tstsp101:45775/test/default.aspx
http://tstsp101:45775/test/forms.aspx
http://tstsp101:45775/test/.... (etc)



Navigation to everything under this specific site (http://tstsp101:45775/test/...) needs to be redirected to one specific page on another server:

https://sharepoint.patest.test/Pages/Support.aspx

Can this be done using the lite version?

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

Re: Redirect all pages under one site

25 May 2012, 03:58

Hello,

Yes it can be done with lite version in the following way:

[ISAPI_Rewrite]
RewriteCond Host: tstsp101\:45775
RewriteRule /test/.* https\://sharepoint.patest.test/Pages/Support.aspx [I,RP]

User avatar
Posts: 5
Joined: 24 May 2012, 11:41

Re: Redirect all pages under one site

25 May 2012, 06:25

Excellent. This works as expected. Thank you!

User avatar
Posts: 16
Joined: 13 Nov 2012, 00:19

Re: Redirect all pages under one site

13 Nov 2012, 00:55

I definitely agree. This one helps me as well. I saved it just in case.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 6 guests