 <p>I think the problem you are having is that the <code>getQueryString</code> method you are using is looking for the "?" operator in the URL, as in a traditional GET request (e.g. <code>?id=1</code>). Instead, try passing the domain as a parameter in the controller method. For example:</p> <p>In your <code>routes</code> file:</p> <pre><code>GET /customer/:domain controllers.Application.function(domain: String) </code></pre> <p>Then in your Play controller (assuming Play Framework 2.x):</p> <pre><code>public static Result function(String domain){ //Do something with the passed domain string here return ok(...); } </code></pre>