rewrite if url contains IP adress

Using mod_rewrite to handle various content issues

rewrite if url contains IP adress

Postby steve301 » Wed Jun 16, 2010 8:27 am

Hi,

I need to rewrite a url for these conditions

if a request comes in for this-

http://123.456.789.012/dirA/dirB/dirC/d ... lename.pdf

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.

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

Return to Content

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron