I am facing the problem of redirecting the url containing the index.aspx page in IIS server. I tried the htaccess file to redirect the url but it doesn't worked more. I also gone with the webmaster tools to overcome the problem but it also get failed. I need some tips from you all that how can I redirect the link. Is there any otherways to redirect the links.
Do you have cpanel? Every cPanel has a redirect feature by which you can redirect pages to other page.
htaccess is for linux/unix environment and IIS is windows for which its not working. you need to do redirection for windows. not sure what you are exactly trying to do with the redirection. in some cases you can get away with just meta url redirection if you are not doing any permanent redirect. just do a search for windows url redirection and you will find some resource.
Redirection in IIS is a bit difficult. Anyway, use this code: <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.example.com/new-page.asp"); } </script> Code (markup): That code will go before the opening html (<html>) tag in old page.