Vanity – Rewrite assets and upload paths

Really a vanity thing.

I’m curious of what I need to do to map assets and upload so it lists as and rather than and… Surely I’m not the only one that like things ultra neat :slight_smile:

It’s just two simple rewrites in any web server:

rewrite ^/assets/(.*) /app/themes/roots/assets/$1
rewrite ^/uploads/(.*) /app/uploads/$1

that’s pseudo code but actually close to something that would work in both Nginx and Apache.

1 Like