Zen Cart Logo
Forums / General Questions / Images on a subdomain

Images on a subdomain

Locked

Views: 2,207

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Sep 2006, 4:30 PM
#1
ilovetrance avatar

ilovetrance

New Zenner

Join Date:
Sep 2006
Posts:
5
Plugin Contributions:
0

Images on a subdomain

If i have a website say **https://www.mywebsite.com **and a subdomain images.mywebsite.com, is there a way to call images from this subdomain instead of images/ folder?
I know images subdomain use images/ folder anyway but I want them to look like coming from another server and I don't know how to set this up in anywhere. I tried to change admin/includes/configure.php line that says

define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');

to

define('DIR_WS_CATALOG_IMAGES', 'http://images.mywebsite.com/');

but didn't work. I think this is specific to admin pages anyway.

I tried changing /includes/configure.php also.

Is there a way to use subdomain for images?

Thanks in advance.

10 Sep 2006, 4:37 PM
#2
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Re: Images on a subdomain

Hi...

changing

define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');

did not work because that define statement requires a folder on the server and cannot use a web address in it's place.

You could name the folder something else if you like. Something like photos/ or products/ but that won't make it look like the images are coming from a different server. but then "images.mywebsite.com" doesn't look like a different web server either since it still has the same domain name. :-D

Perhaps someone else can offer more information.

10 Sep 2006, 9:06 PM
#3
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Images on a subdomain

Maybe you could explain why you would want to do this. There may be other ways to achieve your goal.

11 Sep 2006, 5:18 PM
#4
ilovetrance avatar

ilovetrance

New Zenner

Join Date:
Sep 2006
Posts:
5
Plugin Contributions:
0

Re: Images on a subdomain

no specific reason. I just want the address be seen as if coming from image.mysite.com instead of from subfolders. looks like not possible.
thanks for your time anyways..
cheers