0

Here's the scenario

A site is running on this domain - www.someserver.com

I'm going to host subdomain.someserver.com on my machine.

Let's say all the image files are under the directory 'img'.

I don't want to copy all their images to my machine. So what should be the Apache directive(s) that'll map the request for an image, like

http://subdomain.someserver.com/img/image.png

to

http://www.someserver.com/img/image.png

rubayeet
  • 117
  • 7

1 Answers1

2

On subdomain.someserver.com:

Redirect /img http://www.someserver.com/img

On www.someserver.com:

AliasMatch (.*)$ /location/of/home/directory/$1
Joe
  • 1,775
  • 15
  • 23