Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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've just noticed that seems to be doing a rewrite to one of my domains, This is kind of annoying since that site is the top hit on google when searching for my domain and the address bar stays as when following the link.

I'd like to redirect incoming requests with in the referrer variable to, but the following in my vhost config for isn't working for me:

RewriteEngine on
RewriteCond %{HTTP_REFERER} railsrumble
RewriteRule ^/(.*)$1 [L,R=301]

With this on, I see a bunch of redirects in my access log, but only for static files (cs, javascript). This is the first time I've tried using mod_rewrite, so I'm not even sure if I can accomplish what I want, which is to do a full redirect to my domain and have it appear to the user that they are at

share|improve this question
up vote 2 down vote accepted

This isn't caused by any rewrite rules on Your website is the default website for the IP address (, both sites are served from the same IP address.

You can forward all visitors who are not using your own domain with the following rewrite rules:

RewriteEngine On
RewriteCond %{HTTP_HOST} !.*?$ [NC]
ReWriteRule /(.*)$$1 [R=301,L]
share|improve this answer
You're right, they probably just had my ip a while back and never changed the dns entry. Those rules worked like a charm. Thanks! – user40259 Apr 11 '10 at 0:49
Additionally you should contact the folks at and tell them to remove that A resource record. – joschi Apr 11 '10 at 6:43

It isn't a redirect, and doesn't appear to be a zero sized frame. It appears that they are actually proxying your content through their site. What do the weblogs say when you hit that site?

Your rewrite rule won't affect it if they are proxying. You could use a

deny from

and see if that makes a difference.

share|improve this answer

Your Answer


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.