I have a site http://sabinalfootball.com/,it has admin and public domain. - I have one web.config in the root of the website - Rightnow when i am testing the site,i have to manually type the directory path ,i want it to be redirected to following when someone types the domain http://sabinalfootball.com/SabinalFootball/Public/SchoolHome.aspx How do i do this without affecting the admin part?
I have put the following script in default.aspx which is in the application root(sabinalfootball).It doesn't even seem to picking it up.I also tried to put it in /public but it is not getting picked up. http://support.discountasp.net/KB/a369/how-to-redirect-a-subdomain-to-a-subdirectory.aspx
Hello, When I go here: http://sabinalfootball.com I get redirected here: http://sabinalfootball.com/SabinalFootball/Public/SchoolHome.aspx It seems that you have resolved your issue. Try refreshing your web browser or clear your cache on your web browser. You can also try using a different web browser to see if that resolves your issue.
well,site is not hosted on discountasp.net rightnow and i have redirect figured out for the other host but that redirect doesn't work here..i am testing it discountasp using alternative URL and before i point to discount asp namesever,i want to make sure it redirect correctly.
That maybe the problem. If you have the code to redirect sabinalfootball.com to http://sabinalfootball.com/SabinalFootball/Public/SchoolHome.aspx Then the redirect will only work if the requested URL is: sabinalfootball.com Since the alternative URL is different the redirect will not work unless you program the code to redirect from the alternative URL to the: http://sabinalfootball.com/SabinalFootball/Public/SchoolHome.aspx I also pulled up your hosting account on my end to access the alternative URL and notice that our default document "index.htm" is getting pulled up first by the web server. Try removing this document from your directory.
Thanks Martin for the heads up..i put the same redirect code in index file as it is in old host and it redirects fine..however when i am trying to load the public site 'FIRST TIME',it asks me to login(discountAsp user and pwd) before it redirects,there on if i load subsequently it doesn't ,why so?