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: [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.

Re: [alissibronte] Relative Website root directory

By gregThomas - September 20, 2012

Thanks for the updating me. I've set up a test example to what I think you want to create.

I have my CMS in the directory:

mysite.com/anotherDir/cmsadmin/

and I have my uploads folder in:

mysite.com/uploads

To get uploads working I had my uploads directory set to:

../../uploads/

and my upload folder url set to:

/uploads/

Let me know if I've missed anything!

Thanks
Greg Thomas







PHP Programmer - interactivetools.com