0

I've just noticed that schoolmate.r09.railsrumble.com seems to be doing a rewrite to one of my domains, agilegrad.com. 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 schoolmate.r09.railsrumble.com when following the link.

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

RewriteEngine on
RewriteCond %{HTTP_REFERER} railsrumble
RewriteRule ^/(.*) http://www.agilegrad.com/$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 agilegrad.com.

2 Answers 2

2

This isn't caused by any rewrite rules on railsrumble.com. Your website is the default website for the IP address (http://74.207.240.229), 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} !.*?agilegrad.com$ [NC]
ReWriteRule /(.*)$ http://www.agilegrad.com/$1 [R=301,L]
2
  • 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, 2010 at 0:49
  • 1
    Additionally you should contact the folks at railsrumble.com and tell them to remove that A resource record.
    – joschi
    Apr 11, 2010 at 6:43
0

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 74.207.240.229

and see if that makes a difference.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .