Relative Website root directory

4 posts by 2 authors in: Forums > CMS Builder
Last Post: September 20, 2012   (RSS)

By alissibronte - September 19, 2012

Hi guys,

I'm using CMSB 2.15 and I'm trying to relativize Website Root Directory for easy change of cms dir.

For example:

I have my CMS in http://www.domain.com and I want to change to http://www.domain.com/master

When I made this change then CMS uploads don't work.


My settings:

Website Root Directory: /master
Upload Directory: ../uploads/
Upload Folder URL: /uploads/


I thought that Website Root Dir was needed to append it to upload and get a relative path for uploads but not work.

The only fix I found was changing Upload Folder URL to: /master/uploads/


It's a easy fix but I need relative path to get an easy manage (master CMS) of my multiple licenses.


What can I do?


Thanks in advance.

Re: [alissibronte] Relative Website root directory

By gregThomas - September 19, 2012

Hi,

Thanks for posting, just to confirm; are your uploads currently working as you would like?

I'm not sure what you mean by managing your multiple licences. Could you clarify exactly what your trying to do and we can provide some options and approaches.

Thanks

Greg
Greg Thomas







PHP Programmer - interactivetools.com

Re: [greg] Relative Website root directory

By alissibronte - September 20, 2012

Hi Greg,

my uploads are not working correctly for now.

To get working setup I have to set Upload Folder URL to /subdir/uploads/ instead /uploads/

I want to setup a relative Upload Folder URL because I want to create a Master CMS that I going to upload on different subdirectories and hosts.

I thought that Website Root was using to append in Upload URL and getting a full path whatever subdirectory is using.


For example:

http://www.domain.com/cms (here my uploads settings work /uploads/)
http://www.domain.com/subdirectory1/cms (here dont work and I have to setup a specific Upload Folder URL /subdirectory1/uploads/)


Any help?

Thanks in advance.