RE: Google-site-verification html file

Saurabh Khandelwal, modified 5 Years ago. New Member Posts: 14 Join Date: 1/18/19 Recent Posts
Where to Place Google-site-verification HTML file in Liferay 6.2? So that it can be accessible from the root URL
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I usually do that in the reverse proxy I have before the server.
Other ways would be to adapt web.xml an map the url to some file or to add a filter to Liferay. You probably can also add a context path to the server.xml, but I never tried that.
And I think, google also allows you other verification methods, e.g. adding a meta tag to the page header. Could also be an option.
thumbnail
Dominik Marks, modified 5 Years ago. Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts
You could also upload the verification file to the documents and media library. After that, create a (hidden) page of type "URL" with the desired path (e.g. /google12345.html) which redirects to the download URL of the file in documents and media.
That's we way we do it typically in our Liferay Installations.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
Oh, that's clever. Nice idea!
thumbnail
Krzysztof Gołębiowski, modified 5 Years ago. Liferay Master Posts: 549 Join Date: 6/25/11 Recent Posts
That's a good idea emoticon I didn't know that google follows redirects in this case.