Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a file .htaccess for a invisible redirection. The goal is when i input www.site1.com i have to redirect to www.site2.com without changing url in address bar.

Thanks in advance.

share|improve this question

marked as duplicate by Chris S Feb 27 '13 at 14:02

This question was marked as an exact duplicate of an existing question.

    
See serverfault.com/q/214512 – Jenny D Feb 27 '13 at 14:02

No can do, you could reverse proxy the requests though.

share|improve this answer

Yes, if both sites are on the same Apache instance. If they're on different servers (or if site2 is run by different software) then you'll need to do the reverse proxy that MindTheMonkey is talking about.

share|improve this answer

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