Installing Concrete5 in a child folder.
Permalink
Hi everyone, just a quick question.
I was wondering if it was possible to install Concrete5. elsewhere in the ftp, so not in the root folder, for example. /concrete.
But then when using the site, the actual page structure is in the parent/root folder.
The reason why I need this is because I have a custom built site in the root, and I would like to use Concrete5's functionality for the remaining few pages that I need and obvisouly the front end of both sites need to link up and I don't want this visible in the URL. I just don't think installing Concrete5 in the same directory as my current site would work well for either systems.
Thanks
I was wondering if it was possible to install Concrete5. elsewhere in the ftp, so not in the root folder, for example. /concrete.
But then when using the site, the actual page structure is in the parent/root folder.
The reason why I need this is because I have a custom built site in the root, and I would like to use Concrete5's functionality for the remaining few pages that I need and obvisouly the front end of both sites need to link up and I don't want this visible in the URL. I just don't think installing Concrete5 in the same directory as my current site would work well for either systems.
Thanks
Hi JohntheFish,
Thank you for your reply.
I think this is close to what I need but I am not sure that changing the domain mapping in the server configuration is exactly what I need.
I currently have a site onhttp://www.mysite.com
I would like to install concrete onhttp://www.mysite.com/cms (or anything)
I am going to create a page for example in concrete called reviews. which I would like to be accessible by going to
http://www.mysite.com/reviews
instead of
www.www.mysite.com/cms/index?php/reviews... - which I believe off the top of my head is the url structure of concrete. (I have looked into pretty urls and know I can change the index?php/reviews to just /reviews) but I do not want the parent cms folder viewable.
Thanks again.
Thank you for your reply.
I think this is close to what I need but I am not sure that changing the domain mapping in the server configuration is exactly what I need.
I currently have a site onhttp://www.mysite.com
I would like to install concrete onhttp://www.mysite.com/cms (or anything)
I am going to create a page for example in concrete called reviews. which I would like to be accessible by going to
http://www.mysite.com/reviews
instead of
www.www.mysite.com/cms/index?php/reviews... - which I believe off the top of my head is the url structure of concrete. (I have looked into pretty urls and know I can change the index?php/reviews to just /reviews) but I do not want the parent cms folder viewable.
Thanks again.
Yes, the howto is about just running a c5 site, not making it exist within a previous static site. My point in referencing it was to demonstrate many of the things you can do by installing in a subdirectory.
For your purposes (and assuming c5.6.x), you may need to define DIR_REL in config/site.php and you will need to do some messing with .htaccess path mapping for friendly URLs.
If there are only a few such top level pages as /reviews, it could be easier to hard-code the relevant path redirects into .htaccess rather than come up with generic rules.
While there are .htaccess experts amongst concrete5 developers, I am not one of them. You will target a broader pool of expertise by asking in the htaccess forum on stackoverflow.
For your purposes (and assuming c5.6.x), you may need to define DIR_REL in config/site.php and you will need to do some messing with .htaccess path mapping for friendly URLs.
If there are only a few such top level pages as /reviews, it could be easier to hard-code the relevant path redirects into .htaccess rather than come up with generic rules.
While there are .htaccess experts amongst concrete5 developers, I am not one of them. You will target a broader pool of expertise by asking in the htaccess forum on stackoverflow.
I understand now, Thanks JohntheFish.
I have messed around with htaccess files before, as the same as you I am no expert.
Thank you for pointing me in the right direction, I will get another post up on Stack.
Thanks again :)
I have messed around with htaccess files before, as the same as you I am no expert.
Thank you for pointing me in the right direction, I will get another post up on Stack.
Thanks again :)
On some hosts you may need to make small .htaccess tweaks for it to work.
Personally, I always use subdirectories.
http://www.concrete5.org/documentation/how-tos/developers/organise-...