Monday, August 8, 2011

Redirect page into the subsite based on the URL string

Inside the Master page Head Tag enter the following Java script.
<script type="text/javascript">
   
var str="http://" + window.location.toString().split("//")[1].split("/")[0] + "/";


if(str=="http://servername/" || str=="http://servernamewithdomain/")
window.location.href = "http://servername:Port/sites/subsitename/SitePages/Home.aspx";


</script>





No comments:

Post a Comment

Give Read Permission for SharePoint Add-in for Azure AD Send Mail to Office 365 Domain Group users.

Below are the Steps for Send Mail to Office 365 Domain Group or AD Group users from Provider Hosted ADD-IN. For this we needs to Give Permi...