make domain automatically point to concrete folder

Permalink
Hello,
I am pretty new at this.
I have successfully installed C5.5 onhttp://www.mochahost.com shared hosting.
I installed it in a folder /root/concrete/.

Now my site is ready, but I don't know how to make so when someone types in http://www.mysite.com it will automatically go to /root/concrete/ instead of just /root

Do I make a change in a concrete file or in .htaccess? or anywhere else?

 
jero replied on at Permalink Reply
jero
Why not move all the files in /root/concrete into /root?

If you do that, you will also need to update your config/site.php:
define('DIR_REL', '');

also remove the .htaccess file, if you're using pretty urls, since it will now point to the wrong folder. The easiest way to regenerate it is to disable and then enable pretty urls again in the control panel.

Before you move the files, rename concrete to something else, otherwise the /root/concrete/concrete folder is going to get in a twist when you try to move it onto a file of the same name.
sme1972 replied on at Permalink Reply
Hey,
I changes the name of concrete folder, moved all files under concrete to root and added the line to site.php and deleted the .htaccess file and the site now works when I go tohttp://www.mysite.com, but none of the links work within the site - page can't be found

and now I can't log into C5 admin area.
shouldn't it just be athttp://www.mydomain/login?
jero replied on at Permalink Reply
jero
You'll need to login at mysite.com/index.php/login, because removing the .htaccess file breaks the old login link. It's necessary to remove the file, because otherwise it will redirect you to the now non-existent /root folder.

Once you've logged in, go to dashboard, sitewide settings, and disable pretty urls, then enable it again saving changes each time.

With any luck this should recreate your .htaccess file for you. If not paste, the contents into the .htaccess file.
sme1972 replied on at Permalink Reply
Thanks