Redirecting to a new site unless in a specified directory

Posted by Luke Strickland on Stack Overflow See other posts from Stack Overflow or by Luke Strickland
Published on 2011-01-02T22:38:33Z Indexed on 2011/01/02 22:53 UTC
Read the original article Hit count: 142

Filed under:
|
|

Hello. I run an image hosting site. Lets just go with the following information.

Site: imagehosting.com
Tiny: imgho.st
Directory: n/

Directory is where the images are stored. Anyways. I'm trying to figure out an apache rewrite method to redirect imgho.st to imagehosting.com UNLESS in the n/ directory. So unless the user is imgho.st/n/83md.png redirect to imagehosting.com.

Could anybody help me out with this?

Thanks!

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite