Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a folder on our website http://openeye.net/imagesa that's full of garbage data that external sites and half of the company uses as a dump directory. I'm planning on ultimately nuking it completely but in the meantime I'd like to move it to downloads.openeye.net. The problem I'm having is that many of the users will still have a link similar to http://openeye.net/imagesa/filename.duh.

I'm looking for both an Apache and IIS7 solution.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

In .htaccess or your apache virtual host:

RewriteEngine on
RedirectRule ^imagesa/(.*) http://downloads.openeye.net/$1 [R]
share|improve this answer
    
Excellent, thanks a ton. If I were running IIS7 how would this be accomplished? (we have two sites one running IIS and the other Apache) –  Zach Shallbetter Apr 15 '11 at 15:57
    
You'll have to get an IIS guy to pitch in for that one. Perhaps edit yoru question with a note at the end saying you are looking for both IIS and Apache solutions. –  Caleb Apr 15 '11 at 16:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.