I have a client that needs the media folders on their website to be more SEO friendly. For example, a PDF in the current Umbraco site would be domain.com/media/11100/filename.pdf. What the need for it to say is domain.com/pdf/filename.pdf for seo purposes. I know I can create a folder called "pdf" and ftp the files, but how would I go about doing is so that my client can upload to the folder via Umbraco and linking to it with a content picker?
Yes, but you can only change the media folder to a new name. Look in the FileSystemProviders.config file below.
config/FileSystemProviders.config
Change "media" to the folder you want it to be called.
<add key="virtualRoot" value="~/media/" />
We created another folder on the server called "pdfs" for our pdf files and for now ftp them up. I am looking for a way for clients to manage files on the server through the backoffice.
Custom Media Folders
I have a client that needs the media folders on their website to be more SEO friendly. For example, a PDF in the current Umbraco site would be domain.com/media/11100/filename.pdf. What the need for it to say is domain.com/pdf/filename.pdf for seo purposes. I know I can create a folder called "pdf" and ftp the files, but how would I go about doing is so that my client can upload to the folder via Umbraco and linking to it with a content picker?
-Lee
have you ever considered using URL Rewrite?
Marcio,
I am not sure how I would go about doing that and how would this affect a link like ?
-Lee
Did anyone come up with a solution?
Yes, but you can only change the media folder to a new name. Look in the FileSystemProviders.config file below.
config/FileSystemProviders.config
Change "media" to the folder you want it to be called.
We created another folder on the server called "pdfs" for our pdf files and for now ftp them up. I am looking for a way for clients to manage files on the server through the backoffice.
-Lee
Is there any way to accomplish this in Umbraco 8? Really need this.
@slobodan,
I found this, but there are issues.
https://our.umbraco.com/documentation/reference/config/filesystemproviders/
We have having issues with this solution for V8.
https://our.umbraco.com/forum/using-umbraco-and-getting-started/100085-custom-media-folder-name
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.