URL Forwarding Problem

  • Thread starter Thread starter Binod Nair
  • Start date Start date
B

Binod Nair

Hi All,

I have an ASP.NET appication running on http://xx.xxx.xxxx.xx/aspApplication
and I have a domain http://www.mydomain.com registered at godaddy.com for
this application.I have setup domain forwarding at goDaddy.com to forward to
http://xx.xxx.xxxx.xx/aspApplication. I am using Forms Authentication on the
application.Now the problem i am facing is , when i login to the application
through http://xx.xxx.xxxx.xx/aspApplication everything works fine and get
authenticated and logged in. But when I login in through
http://www.mydomain.com , the cookie gets blocked and I am prevented from
logging in(i am not getting authenticated).

The path in the web.config file is pointed to path="/".

Any help appreciated.

--binod
 
I've experencied this kind of behavior too, the problem was the forwarding
used a html iframe to display the underlying page. I've solved this by
disabling the "stealth" forwarding and using a normal redirect.

You can check what kind of forwarding you are using by surfing to the site
by using mydomain.com and the choosing View Source in IE. Can you post the
HTML?
 
As you can see your page is displayed in a frame. Does your domain agent
offer you any other possibilities for hosting?

Otherwise you could create a default.htm page like this:
<script language="javascript" type="text/javascript">
if (top.location != self.location) {
top.location = self.location; // pop to top
}
</script>
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="0;
URL=http://66.162.25.252/cordovaridge/default2.aspx">
</head>
<body>
</body>
</html>

The default2.aspx page would be the start page for your project (now
default.aspx). What will happen is that you'll break out of your frame and
redirect to the default2.aspx page.

Let me know if you have any problems, because I couldn't try it out...
 
But the problem is , now the users will see the IP address in the URL ..I
dont want that to happen.
 
Back
Top