Answered by:
url redirection in sharepoint 2013 web site

Question
-
Hi,
We have redirection URL requirement in SharePoint 2013 application, If users types http://xyz.com/careers it should redirect to external site http://abc.com/careers
can anybody advice me how can i implement without any custom coding/java-script. It should be settings done at web.config or IIS level.Thursday, June 9, 2016 2:06 PM
Answers
-
You can add the following rule for the URL redirect in web.config -
<rule name="HostNameRedirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="^xyz\.com$" /> </conditions> <action type="Redirect" url="http://abc.com/{R:1}}" redirectType="Permanent" /> </rule>
NLV
MCTS | Blog | Twitter | Linked In
If this post helps or answers your question, "Vote" or "Mark as answer".- Proposed as answer by Wendy DZMicrosoft contingent staff Tuesday, June 21, 2016 2:36 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Thursday, June 30, 2016 8:16 AM
Thursday, June 9, 2016 7:25 PM -
Hi ppatil12,
According to your description, you want to redirect in SP2013.
Here are some ways:
1. Redirect with XML Viewer or Content Editor WebPart.
2. IIS HTTP Redirect.
3. Redirect with URL Rewrite 2.0 Module.
Please refer to the link for steps:
http://blogbaris.blogspot.sg/2013/09/ways-to-redirect-http-requests-in.html
Or directly add the code in that page using content edit web part.
<meta http-equiv="REFRESH" content="0;url=http://www.yoururl.com">
Best Regards,
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Edited by Chris yuri Friday, June 10, 2016 7:01 AM
- Proposed as answer by Wendy DZMicrosoft contingent staff Tuesday, June 21, 2016 2:37 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Thursday, June 30, 2016 8:16 AM
Friday, June 10, 2016 6:56 AM -
1. create a site in IIS as http://xyz.com
2. click the site in IIS and select "iis redirection"
3. enter the redirection url and save.
Regards
Faisal
plz mark as an answer if it helps.
Faisal
- Proposed as answer by Wendy DZMicrosoft contingent staff Tuesday, June 21, 2016 2:37 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Thursday, June 30, 2016 8:16 AM
Thursday, June 9, 2016 8:53 PM
All replies
-
You can add the following rule for the URL redirect in web.config -
<rule name="HostNameRedirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="^xyz\.com$" /> </conditions> <action type="Redirect" url="http://abc.com/{R:1}}" redirectType="Permanent" /> </rule>
NLV
MCTS | Blog | Twitter | Linked In
If this post helps or answers your question, "Vote" or "Mark as answer".- Proposed as answer by Wendy DZMicrosoft contingent staff Tuesday, June 21, 2016 2:36 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Thursday, June 30, 2016 8:16 AM
Thursday, June 9, 2016 7:25 PM -
1. create a site in IIS as http://xyz.com
2. click the site in IIS and select "iis redirection"
3. enter the redirection url and save.
Regards
Faisal
plz mark as an answer if it helps.
Faisal
- Proposed as answer by Wendy DZMicrosoft contingent staff Tuesday, June 21, 2016 2:37 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Thursday, June 30, 2016 8:16 AM
Thursday, June 9, 2016 8:53 PM -
Hi ppatil12,
According to your description, you want to redirect in SP2013.
Here are some ways:
1. Redirect with XML Viewer or Content Editor WebPart.
2. IIS HTTP Redirect.
3. Redirect with URL Rewrite 2.0 Module.
Please refer to the link for steps:
http://blogbaris.blogspot.sg/2013/09/ways-to-redirect-http-requests-in.html
Or directly add the code in that page using content edit web part.
<meta http-equiv="REFRESH" content="0;url=http://www.yoururl.com">
Best Regards,
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Edited by Chris yuri Friday, June 10, 2016 7:01 AM
- Proposed as answer by Wendy DZMicrosoft contingent staff Tuesday, June 21, 2016 2:37 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Thursday, June 30, 2016 8:16 AM
Friday, June 10, 2016 6:56 AM