<p>Perhaps using redirects and Regex in your .htaccess? There's a Craft plugin that would help with this.
<a href="https://github.com/rkingon/Craft-Plugin--Redirect-Manager/">https://github.com/rkingon/Craft-Plugin--Redirect-Manager/</a></p>

<p>You could use something like:</p>

<pre><code>RedirectMatch 301 /download/(.*) /several/subfolders/for/organisation/purposes/$1 
</code></pre>

<p>You would need to refine this for matching several different subfolders.</p>

CC BY-SA 3.0
2015-02-24T21:05:00.440Z
Thank you for this. I asked the question and then kinda forgot about it.
Bruce Johnson
CC BY-SA 3.0
2015-02-05T17:00:37.740Z
2015-02-05T17:00:37.740Z
Chad W
<p>Is there a way to get "vanity URLs" for my assets? Something like:</p>

<p>www.example.com/download/asset.pdf</p>

<p>rather than:</p>

<p>www.example.com/several/subfolders/for/organisation/purposes/asset.pdf</p>

<p>I know that dumping all assets into a /download folder will work but this is far from an ideal solution. Is there another way?</p>

<assets><url>
Nice-looking URLs for assets
# Nice-looking URLs for assets

(Asked by: username_0 on 2015-02-05)

Is there a way to get "vanity URLs" for my assets? Something like:

www.example.com/download/asset.pdf

rather than:

www.example.com/several/subfolders/for/organisation/purposes/asset.pdf

I know that dumping all assets into a /download folder will work but this is far from an ideal solution. Is there another way?

**Tags:** assets, url

---

## 1 answers

### Answer by username_1 on 2015-02-05. Score: 5 | Accepted answer

Perhaps using redirects and Regex in your .htaccess? There's a Craft plugin that would help with this.
https://github.com/rkingon/Craft-Plugin--Redirect-Manager/
You could use something like:
RedirectMatch 301 /download/(.*) /several/subfolders/for/organisation/purposes/$1 

You would need to refine this for matching several different subfolders.

> **Comments:**
> **username_0**: Thank you for this. I asked the question and then kinda forgot about it.  

---

