Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Google-site-verification html file
Where to Place Google-site-verification HTML file in Liferay 6.2? So that it can be accessible from the root URL
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.
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.
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.
That's we way we do it typically in our Liferay Installations.
Oh, that's clever. Nice idea!
Krzysztof Gołębiowski, modified 5 Years ago.
Liferay Master
Posts: 549
Join Date: 6/25/11
Recent Posts
That's a good idea
I didn't know that google follows redirects in this case.

Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™