I'm using apache server and PHP,
I've just done a cms, and now I would like to provide some demos at different URLs,
BUT within the same domain, for example
Something like this:
If those were the corresponding real paths on my server:
I don't want to change my cms code to achieve this (if possible)
The first solution I thought of was buy a domain for each demo, and use Virtual Hosting to map a demo to a domain. That would do exactly what I want, but that would be too expensive...
With Alias directive,
Alias /demo1/ /myserver/cms/demo1
is almost perfect, but I still got the problem that the
$_SERVER['REQUEST_URI'] variable is modified from
/demo1, which unfortunately makes my cms confuse.
I would need a truly unobstrusive way of doing this, like with virtual hosts.
If you've faced that problem too, I would like to hear how you dealed with it.