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 domain.com/assets and domain.com/uploads rather than domain.com/app/themes/roots/assets and domain.com/app/uploads… 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