If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

I got a problem with douplcate content because most of my pages are reacheable by multiple urls (with and without controller...)

So I researched the topic and found that you can tell searchengines that is the way you want this URL to show.

By adding a <link rel="canonical" href="http://www.example.com/controller/function?id=x"/> to the head of the page. is there an easy way to create those tags automaticly?

something like putting <link rel="canonical" href={{=URL(request.here}}> in the layout?

Answers (0)

Comments (0)


Hosting graciously provided by:
Python Anywhere