Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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,
Can you not just changed the path in the config?
Change "media" to the folder you want it to be called.
<add key="virtualRoot" value="~/media/" />
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?
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...
Write your reply to:
Image will be uploaded when post is submitted