Images not working on Sub-Domain

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
Hi Guys

I freshly installed nopCommerce 2.00 on a Sub-Domain. However all the images are not working, even though they are being uploaded fine. I know what the issue is, it is to do with the URL's.

I am getting this:

http://www.mysite.com/sub-domain-folder/content/images/thumbs/0000001_125.jpeg

When I should be getting:

http://www.mysite.com/content/images/thumbs/0000001_125.jpeg

How can I fix this issue ? I would greatly appreciate any help.

Thank You.
Hace 12 años
Everything works fine. You uploaded the site to 'http://www.mysite.com/sub-domain-folder/'. So the images should also be stored into 'http://www.mysite.com/sub-domain-folder/'
Hace 12 años
Hi Andrei

But that shouldn't be the case, because I have set my sub-domain folder to be the application starting point.

If all was fine, like you said, then really I should be seeing the images here. Yet I'm not :(
Hace 12 años
Ciwan wrote:
I have set my sub-domain folder to be the application starting point.

If you set your sub-domain folder to be the application starting point, then why did you upload the site to the root? It's weird
Hace 12 años
Hi Andrei

I haven't uploaded my site to the root ! I have uploaded my site to

./ncthemes/

where [ ./ = root ]

So I have uploaded the site into a folder, within the root. :(
Hace 12 años
Strange way of uploading site. If you want it to be accessed via http://www.ncthemes.com/, then upload it to the root.  If you want it to be accessed via http://www.ncthemes.com/ncthemes/, then upload it to the /ncthemes/ directory.
Hace 12 años
OK I'll try and make this as clear as possible :)

[ Root ]

Location: ./
Domain: www.jzendev.com

[Sub Domain ]

Location: ./ncthemes/
Domain Pointer: www.ncthemes.com

I hope it is all clear now.

How do I go about fixing the images ?

Thanks
Hace 12 años
I can't answer. I haven't had such issues before. It seems that you configured it improperly. I suggest to open \Libraries\Nop.Services\Media\PictureService.cs file and play with some path variables. For example, lines 24, 651, 663.
Hace 12 años
lol so I'm the first one in the history of nopCommerce to experience such an issue ! :D

Has anyone ever installed nopCommerce on a Sub-Domain ?

Thanks
Hace 12 años
Ciwan wrote:
Has anyone ever installed nopCommerce on a Sub-Domain ?

I did it a lot of times. And it worked fine
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.