Question

To verify your site at google webmaster tools, you must download a verification file and upload it to your site to be available at:

www.example.com/google1234a1ab1234a123.html

Where should I put this file in the web2py directory structure? I have a single web2py app that is served at www.example.com. Note I am using pattern based routing.

Was it helpful?

Solution

I'm open to better methods but I put the file in the static folder and added a routes_in entry:

routes_in = (
   ...
   ('/google1234a1ab1234a123.html', 
      r'/my_app/static/google1234a1ab1234a123.html'),
   ...
)

And now it's working.

OTHER TIPS

This answer should work, though not if you are already using the parameter-based URL rewrite system (which is not compatible with the pattern-based system used in that answer). Instead, you might consider using one of the three other methods Google offers for verification, such as setting a meta tag.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top