开发者

Use search engine meta tag outside of the <head> section

I'm using a meta tag to restrict access to specific parts of a website. The problem is that I'm using a CMS and I can only insert the <meta> tag inside the <body&开发者_JS百科gt;, because the <head> sections is part of the universally used main template. Dose the <meta> tag still work outside the <head> section?


You can accomplish the same effect as that meta tag using an HTTP header. The X-Robots-Tag can be set in an .htaccess file and will do the exact same thing as the meta tag. If your CMS doesn't support it you can always add it manually and it won't be affected by the CMS creates pages at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜