Last post Sep 04, 2012 10:18 AM by ReidMelSam
Sep 02, 2012 04:24 PM|ReidMelSam|LINK
I have a shared hosting scenario on GoDaddy...like most, it contains subdomains under a "_sites" directory in the html root. In 'website1.com', for instance, I have several '.aspx' pages. When I navigate to them, I get a search within this directory, and
a url such as 'website1.com/AboutUs.aspx'. But when I am redirected to the login page (built with VS membership/login controls) I am redirected OUTSIDE the 'website1' directory to the '_sites' directory and then back in, producing a url of 'website1.com/_sites/website1/login.aspx'
and this is undesireable as all my subsequent page searches fail.
How can I control the redirect request so that I stay in my subdomain's directory? I have investigated CNames (don't know how to use, or if this is the solution) setting the 'loginUrl="login.aspx"' in web.config--that didn't help, either.
Also, I looked at using the <membership> node in web.config to tell it the name of the application, like:
...where applicationName="/website1" and '/website1' is the name of the subdirectory I'm trying to stay within.
Any suggestion is appreciated very much!
Sep 04, 2012 10:18 AM|ReidMelSam|LINK
If there is a way I can alert moderators to try to assist with a subject-matter expert, I'm pretty desperate. I have raised this issue several different ways across a couple of forums (security, etc.). It is starting to look to me like either no one looks
at these, or no one is in a position, knowledge-wise, to support ASP.Net membership tools.
I have investigated whether this is caused by:
1) settings in web.config, per the previous posting,
2) my directory structure in my shared hosting arrnagement, again, per the original posting,
3) use of IIS settings, like virtual directory/path declarations,
4) the manner in which addresses are declared, such as use of CName, or url forwarding/masking, etc.
source of my rendered pages shows that my linked files (css, etc) all look back to the '_sites' directory and then back into my application root.
I cannot believe no one else has encountered this, as I'm sure the membership (CreateUserWizard) module and its accompanying database structure, in combination with a shared-hosting arrnagement and subdomains have been deployed by others.
I am asking that someone who sees this can direct me to either a detailed tutorial, or indicate what might be causing my redirects to the login page (either by clicking my 'Login' button that is built into my LoginStatus control,
OR being redirected there from a restricted page request) to navigate UP one directory from my application root (/website1). I thought a "configuration and deployment" expert might know more than I do about setting up live sites in shared hosting
arrangements--especially where subdomains are involved.
Thanks very much for your time.