Following the standards established in the RFC2606 (https://tools.ietf.org/html/rfc2606#page-2) and the RFC6761 (https://tools.ietf.org/html/rfc6761#section-6.3), it's better for the user to give him a working link (using .localhost redirects the user to localhost), and the traditionnal L(inux)AMP install (https://doc.ubuntu-fr.org/lamp) has the following default path : /var/www/html