Hi, happy tricky Tuesday,
I want to change the physical path of the media folder. Currently it's "www.site.com/media". This is by default. But I created new sub domain "www.site.com/acc" and I want my media to be in the folder "www.site.com/acc/media". Is this possible. If yes where should I find the setting? Or should I do it manually from the code?
Tried but it doesn't work. Maybe I'm doing something wrong. Do I have to delete a cache folder first? Just to remind you I'm trying this in version 8 :)
What I'm trying to accomplish is this:
- I have production and acc environments on external domain
- Acc is in subdomain what means only a sub folder "root/acc/"
- And production is just "root"
- I want acc to look for media in folder "root/acc/media/" but it looks in "root/media"
What I did for this was I cut and paste my whole media folder to the root of my x: drive. Then in IIS I went in and added a virtual directory called media and set the path to x:\media. Seems to work well and should work for any path that you want to place it.
Media path location
Hi, happy tricky Tuesday, I want to change the physical path of the media folder. Currently it's "www.site.com/media". This is by default. But I created new sub domain "www.site.com/acc" and I want my media to be in the folder "www.site.com/acc/media". Is this possible. If yes where should I find the setting? Or should I do it manually from the code?
Thanks in advance, Slobodan
Hi,
Can you not just changed the path in the config?
FileSystemProviders.config
Change "media" to the folder you want it to be called.
Tried but it doesn't work. Maybe I'm doing something wrong. Do I have to delete a cache folder first? Just to remind you I'm trying this in version 8 :)
What I'm trying to accomplish is this: - I have production and acc environments on external domain - Acc is in subdomain what means only a sub folder "root/acc/" - And production is just "root" - I want acc to look for media in folder "root/acc/media/" but it looks in "root/media"
So I want to change virtual folder to ~/acc/media
Am I doing something wrong?
Thanks
What I did for this was I cut and paste my whole media folder to the root of my x: drive. Then in IIS I went in and added a virtual directory called media and set the path to x:\media. Seems to work well and should work for any path that you want to place it.
is working on a reply...