Answered by:
How to create redirect page after login

Question
-
Hi,
How to create redirect page in sharepoint. After authentication i need to redirect to any one of the site the user have access.But the user doen't have access to the root site and have different dept site. Under Root site , I have created subsite and I have created the Redirect page under sitepage.Different site collection refers different department.some user have access to department site and some user have access to subsite only.
1. where i should create the redirect page [ root site ?]
2. I want to use server side code to redirect
thanks
- Edited by Anitha bala Sunday, May 27, 2012 12:23 PM
Sunday, May 27, 2012 12:22 PM
Answers
-
hi,
you can replace the default login page with yours.
have a look on this page to create your custom login page and you can combine you redirection code with the login page.
Senior Software Architect
- Marked as answer by Qiao Wei Wednesday, June 6, 2012 7:21 AM
Friday, June 1, 2012 11:00 PM
All replies
-
hi Anitha,
if you will use a server side code you can create an application page under _layouts folder and use this page to check if the user has access to the department site and based on the result you can redirect the user to department site or a subsite.
regards,
Senior Software Architect
- Proposed as answer by Guillermo Bas Monday, May 28, 2012 6:55 AM
Sunday, May 27, 2012 12:34 PM -
Hi,
I created a redirect page (Application page) and placed under _layouts path.In that page i am checking the logic whether user have access to the site or not. In the webconfig i have set as follows
<authentication mode="Forms">
<forms loginUrl="/_login/default.aspx />
</authentication>If i type the Url as 'http://...../testsub/_layouts/Educare.MOELC.Redirect/MySiteRedirectPage.aspx' the login page popup and it works fine.
testsub is the subsite under rootsite and all users have access to it.
Now my issue is after Login ,how do I link to the 'Mysiteredirectpage' page ?.[ how to redirect from login page?]
Thanks in advance
- Edited by Anitha bala Tuesday, May 29, 2012 3:03 AM
Tuesday, May 29, 2012 2:47 AM -
hi,
you can replace the default login page with yours.
have a look on this page to create your custom login page and you can combine you redirection code with the login page.
Senior Software Architect
- Marked as answer by Qiao Wei Wednesday, June 6, 2012 7:21 AM
Friday, June 1, 2012 11:00 PM -
Hi, you mean to say that i need to create a custom login page and include the code to redirect the users to respective site. No other option to do this? Thanks in advanceThursday, June 7, 2012 6:17 AM