News for hackers. Stuff that matters.
Re:Show HN: RootRedirect for your domain, helps SEO by clone1018 on Thursday April 05, 2012 @07:10PM (#3805112)
You're selling a redirect rule...?

  RewriteEngine on
  RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Re:Show HN: RootRedirect for your domain, helps SEO by mleonhard on Thursday April 05, 2012 @07:29PM (#3805189)
Yes, hosted on geo-redundant servers, in excellent data centers, monitored 24/7.

You can't use a CNAME record for your root domain. This is a problem for me and lots of folks who run their web servers behind Amazon Elastic Load Balancers or other CNAME-based services. RootRedirect solves the problem nicely.

Re:Show HN: RootRedirect for your domain, helps SEO by byoung2 on Thursday April 05, 2012 @08:16PM (#3805344)
This is a problem for me and lots of folks who run their web servers behind Amazon Elastic Load Balancers

Amazon Route 53 solves this problem with an alias record, though your service may be easier to use or cheaper than what Amazon offers.

http://aws.amazon.com/route53/faqs/#Zone_apex

Re:Show HN: RootRedirect for your domain, helps SEO by 1SaltwaterC on Friday April 06, 2012 @05:12AM (#3806465)
Actually we can, but that's a professional DNS service that includes other stuff besides DNS. But when we used CNAME for the root, some email services stopped working. They were trying to send the email to the CNAME resolved address which was the ELB itself. Did you find a solution for that?
Re:Show HN: RootRedirect for your domain, helps SEO by tstegart on Thursday April 05, 2012 @07:32PM (#3805206)
+1 for showing up to reply. I like it.
Re:Show HN: RootRedirect for your domain, helps SEO by mark242 on Thursday April 05, 2012 @07:30PM (#3805197)
Or for you nginx users...

  server {
    server_name example.com;
    rewrite ^ http://www.example.com$request_uri? permanent;
  }
Re:Show HN: RootRedirect for your domain, helps SEO by rgrieselhuber on Thursday April 05, 2012 @07:30PM (#3805194)
Gotta admire the pluck.
Re:Show HN: RootRedirect for your domain, helps SEO by 1880 on Thursday April 05, 2012 @07:17PM (#3805140)
Not only that, you have to point your domain to his nameservers. That looks risky.
Re:Show HN: RootRedirect for your domain, helps SEO by tstegart on Thursday April 05, 2012 @07:19PM (#3805144)
So how do you do this on your own?
Re:Show HN: RootRedirect for your domain, helps SEO by zacharyb on Thursday April 05, 2012 @07:27PM (#3805183)
Re:Show HN: RootRedirect for your domain, helps SEO by tstegart on Thursday April 05, 2012 @07:39PM (#3805223)
Thanks! Our web hosting (NearlyFreeSpeech.NET) had a button I could click and it did it automatically.
Re:Show HN: RootRedirect for your domain, helps SEO by MoOmer on Thursday April 05, 2012 @07:27PM (#3805182)
A little more background on it for you here: http://www.seomoz.org/learn-seo/redirection
Re:Show HN: RootRedirect for your domain, helps SEO by 1880 on Thursday April 05, 2012 @07:21PM (#3805155)
One can use the rule that clone1018 posted, for example.
Re:Show HN: RootRedirect for your domain, helps SEO by tstegart on Thursday April 05, 2012 @07:37PM (#3805219)
So, separate question, since apparently I have a bunch of people here who understand this:

I need to track link clicks made on advertisements in our iPad app. I can't do it from the app because 1) our backend is open source, and they're not implementing that and 2) I don't know how anyways.

So I thought of using redirects. The link in the app goes to our site and gets redirected to the advertiser's site. That way I can track it with Google analytics and since i understand that, everything is peachy.

Therefore, the questions are: 1) is this an acceptable practice? and 2) is there a better, easier way that I'm unaware of?