Hi,

Is there a way to rewrite the Host based on Path?

I'm trying to redirect all requests of type:

static.domain.com/site1/resource.jpgstatic.domain.com/site1/resource2.jsstatic.domain.com/site2/resource3.gifstatic.domain.com/site2/someDir/resource4.txt

to

site1.domain.com/resource.jpg
site1.domain.com/resource2.js
site2.domain.com/resource3.gif
site2.domain.com/someDir/resource4.txt

Basically, if the host is static.domain.com:


   1. New subdomain is based on the first part of the original path, with
   the same TLD.
   2. New path is the original path not including the first part.

Reply via email to