Meta Tags & Titles

Added by James Rempel over 7 years ago

Is there a way to have different Meta Tags, such as content and keywords, as well as different titles set for each individual page?

Replies (1)

RE: Meta Tags & Titles - Added by Koen Deforche over 7 years ago


You can use WApplication::setTitle() on each of your pages, and you can also use WApplication::addMetaHeader() on each of your pages.

The latter will only be visible to search bots (which get an plain HTML version of your 'page') to plain HTML browsers, unless you switch to 'progressive bootstrap' mode.

You may also need to get a better detection of search bots, e.g.:

       <user-agents type="bot">
            <user-agent>.*Sogou web spider.*</user-agent>