need to reqwrite url by requesting host

New to mod_rewrite? This is a good place to start.

need to reqwrite url by requesting host

Postby steve301 » Fri Jun 18, 2010 6:56 am


I need to rewrite a url for these conditions

if a request comes in for this-

"http://123.456.789.012/dirA/dirB/dirC/dir.D/longfilename.pdf" is the request coming from the client

I need to just move the docroot up one directory, and serve this file

"http://123.456.789.012/dirB/dirC/dirD/longfilename.pdf" instead, but only when the request comes in for that one IP address...

Any help would be greatly appreciated.

Posts: 9
Joined: Tue Nov 25, 2008 10:13 am
Location: N.Y.

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 11 guests