diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b983f98a48459ba69ac29477af035aaf376a358a..6e86043fe89f06893c58bd0d42f8dd814bb0fd2c 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -204,8 +204,10 @@ class FormulaAuditor
       problem "Google Code homepage should end with a slash (url is #{f.homepage})."
     end
 
-    if f.homepage =~ %r[^http://.*\.github\.com/]
-      problem "GitHub pages should use the github.io domain (url is #{f.homepage})"
+    if f.homepage =~ %r[^http://(.*)\.github\.com/]
+      if $1 != 'github'
+        problem "GitHub pages should use the github.io domain (url is #{f.homepage})"
+      end
     end
 
     urls = @specs.map(&:url)