Root folder issue/question

MyPoint CreditUnion asked on September 9, 2014 22:09

When I started working on a website I had to put the whole thing in a folder. The name I chose was "root". This is on a dev server, the live server needs to be in the actual root, not a folder called "root". In other words, my urls are now all: www.example.com/root/store/product, and I need it to be www.example.com/store/product

How can I accomplish this? Do I deploy to inetpub/wwwroot? Right now it would be inetpub/wwwroot/root and obviously I can not simply move the site by hand.

Please advise me on what to do so everything points correctly before I get any further.

Thanks!

Recent Answers


Brenden Kehren answered on September 10, 2014 00:37

Your folder structure won't make a difference, its how you have it setup in IIS. In IIS the root of you website should be pointing to the "root" directory of your website. My guess is now you have your root website in IIS pointing to /inetpub/wwwroot and the Kentico instance in in /inetpub/wwwroot/root.

When you move it to the live server things should be just fine, I'm sure as the "root" shouldn't be stored in any of the links in your database unless you've hard coded them.

0 votesVote for this answer Mark as a Correct answer

MyPoint CreditUnion answered on September 10, 2014 00:41

This is as I suspected, and why I was not worried.

There are a few things that are "hardcoded" using a url like ~/root/store/product

If I change those to ~/store/product and then change the IIS set up then I should be good to go right?

I try and let the system dictate the URLs to avoid things like this, but when I do need to "hardcode" a URL how do I do it correctly?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 10, 2014 15:23

Ideally your Kentico instance will be in the root of the website meaning when you navigate to www.yourdomain.com it will load Kentico. VS. www.yourdomain.com/root. All of this is initial setup and configuration. There should be no need to hardcode any URL, if setup is done properly then IIS and Kentico will handle it all for you.

0 votesVote for this answer Mark as a Correct answer

MyPoint CreditUnion answered on September 10, 2014 17:15

Any ideas on how to change it after the fact? I thought of trying to deploy the site to the root of the website (in effect moving it, I hope).

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.