blog.relativt.net

Eirik's public note to self

30 June 2016

How to verify a Play Framework application in Google's Search Console

by Eirik Tenold

In order to verify your website in Google’s Search Console (previously called Webmaster Tools) you have to host a specific file at a specified URL. This is really simple to do and needs only two steps to fix.

  1. First download the file provided by Search Console to the /public folder in your application.
  2. Add the following line to the /conf/routes file:

GET /google(something).html controllers.Assets.at(path=”/public”, file=”google(something).html”)

Replace (something) with the filename provided by Google.

tags: Play Framework - Google Search Console