I run a picture hosting site. Allows go using the following information.

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

Directory is how the pictures are saved. Anyways. I am trying to puzzle out an apache rewrite approach to redirect imgho.st to imagehosting.com Unless of course within the n/ directory. So unless of course the consumer is imgho.st/n/83md.png redirect to imagehosting.com.

Could anybody assist me with this particular?


Place the RewriteCond before your RewriteRule

RewriteCond %{REQUEST_URI} !\/n\/.*$
RewriteRule ...