Website URL falling in sub folder

Topics: Developer Forum
Mar 15, 2012 at 12:23 AM
Edited Mar 16, 2012 at 12:47 AM

Hi, I have just deployed N2CMS in my personal website. I have a sub folder called "mywebsite.com.au" under my primary host account (can host multiple sites). I delegate the domain name to that sub folder.

After installation, it looks like the website URL recognise the sub folder "mywebsite.com.au" as the root.

e.g. My website is http://www.mywebsite.com.au 

But the website is accessible via http://www.mywebsite.com.au/mywebsite.com.au only. 

For the N2 backend. The server can interpret both URLs below
http://www.mywebsite.com.au/N2/Login.aspx
http://www.mywebsite.com.au/mywebsite.com.au/N2/Login.aspx

I try to using rebase tool, it only recoganise the sub folder, not the root folder.

What I want to achieve is that my website is accessible via the root folder (http://www.mywebsite.com.au) not the sub folder (http://www.mywebsite.com.au/mywebsite.com.au)

Could someone throw some lights on this issue? Thank you!

Mar 15, 2012 at 12:24 AM

I use the web form version.

Coordinator
Mar 15, 2012 at 11:21 PM

I'm not familiar with domain name delegation. Is the host just mapped to that folder?

Is the problem that the site doesn't rebase links when you change from the virtual dir to /?

Mar 15, 2012 at 11:40 PM
Edited Mar 16, 2012 at 12:46 AM

Thanks for the reply. When I run the rebase, it says that I don't need to rebase. It detects the site is "/mywebsite.com.au/" rather than "/".

Is there a way for me to override the root path? Instead of auto detect, can I code a static value in, or add a "../" in front?

Mar 16, 2012 at 5:37 AM

It looks like the hosting issue (GoDaddy Unlimited hosting package) when put multiple websites under virtual directories under the same primary account . But I just wonder if I can do something in N2CMS to fix it. So far there is no solution from GoDaddy yet.

Mar 17, 2012 at 8:44 PM

@rgao906  I had the exact same problem with GoDaddy.  They basically came back to me and said they wouldn't be doing anything to fix it.  I ended up getting some hosting with Arvixe, which I found purely by accident.  I created the website, uploaded the deployed project from VS2010 via ftp, browsed to the new site, and N2 appeared without doing anything else whatsoever.

In this instance, I have to say GoDaddy were worse than useless.

Coordinator
Mar 19, 2012 at 9:00 AM

rgao: Could you share some more details privately? I'm interested to figure out if something can be changed to support this.

Jul 3, 2013 at 10:10 AM
Hi!

I am facing the same issue, could you please help me if you had get a solution?

Thanks in advance