sitemap

Where to put robots.txt in tomcat 7?

一曲冷凌霜 提交于 2019-12-10 16:29:11
问题 I'm using Tomcat 7 to host my application. I've used a ROOT.xml file under tomcat-home\conf\Catalina\localhost <Context docBase="C:\Program Files\Apache Software Foundation\Tomcat 7.0\mywebapp\MyApplication" path="" reloadable="true" /> This is to load my webapp in the root context. But now I'm confused as to where to put the robots.txt and sitemap.xml files. When I put in under C:\Program Files\Apache Software Foundation\Tomcat 7.0\mywebapp\MyApplication, it doesn't show up. I've also tried

Symfony2 force twig to output XML formated data

半城伤御伤魂 提交于 2019-12-10 15:44:45
问题 I am using Symfony2 and struggling to use twig to output data in a XML format. Instead what happens twig just throws massive block of text on to the browser it is only when right click to view source i can see nicely laid out XML. Is there any way I can force Twig to actually output formatted XML instead blok of text without having to view page source...? sitemap.xml.twig: <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> {% for entry in

sitemap for domain with multilanguage site

会有一股神秘感。 提交于 2019-12-10 14:57:33
问题 I have www.mysite.it that support 2 language: mysite.it/it => italian language mysite.it/en => english language How can I set up the correct sitemap for the 2 version? Thanks 回答1: Google have specifically answered this here: http://googlewebmastercentral.blogspot.co.uk/2012/05/multilingual-and-multinational-site.html For example: <url> <loc>http://mysite.it/it</loc> <xhtml:link rel="alternate" hreflang="en" href="http://mysite.it/en" /> <xhtml:link rel="alternate" hreflang="it" href="http:/

In a google search result, how do links show up beneath a result

◇◆丶佛笑我妖孽 提交于 2019-12-10 12:25:56
问题 I have a sitemap ready already done. How do I get google results to show a set of links beneath the link? I understand that google generates sitelinks by itself, which in turn cause these type of results to show: Is there a difference between the first image and the second? are they both sitelinks auto-generated by google? If not, what's the difference between the first image and the second? Thank you 回答1: Google adds them if it thinks your site is big enough or popular enough to warrant them

google sitemaps and custom tags

牧云@^-^@ 提交于 2019-12-10 11:35:30
问题 I would like to add a custom tag or attribute to the google sitemap for internal use. I can't find any documentation on this so I would like to ask if anybody has done something similar? 回答1: You can't add your own tags to an XML sitemap as they are not valid as described in the schema. If you do this you run the risk of the sitemap being rejected or causing errors. 回答2: I am using custom attributes (seem to work fine) and elements (cause errors, but are ignored by Google Webmaster Tools).

Creating Sharepoint/MOSS sitemap

ぐ巨炮叔叔 提交于 2019-12-10 11:17:41
问题 I'm trying to create a sitemap for my MOSS publishing site, i've got two approaches but seem to be stuck with both. My first approach is to use the PortalSiteMapProvider, which is already created and nicely cached... PublishingWeb rootWeb = PublishingWeb.GetPublishingWeb(SPContext.Current.Site.RootWeb); //Get the URL of the default page in the web string defaultPageUrl = rootWeb.DefaultPage.ServerRelativeUrl; PortalListItemSiteMapNode webNode = (PortalListItemSiteMapNode)PortalSiteMapProvider

Extending a Sitemap

左心房为你撑大大i 提交于 2019-12-10 10:37:33
问题 I have a website that contains a sitemap.xml file. Currently, my sitemap.xml file looks like the following: <?xml version="1.0" encoding="utf-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.mysite.com/about/blog/post-1</loc> <lastmod>2013-08-13</lastmod> <changefreq>never</changefreq> <blog:title>This is the title of the blog post</blog:title> <blog:description>This is the description of the blog post</blog:description> <blog:author>Some person</blog

Magento and Google Sitemap - Cron

試著忘記壹切 提交于 2019-12-10 04:35:18
问题 I'm a newbie in Magento. I'm tring to configure an auto-generated Google Site Map. I've read everywhere how to set up cron job for Magento with cPanel, how to configure from backend and so on. My current settings: under System -> Configuration -> Google Sitemap -> Generation Settings -> Enabled = YES. I've create the sitemap on Catalog -> Google Sitemap, of course, which I can manually generate without any problem. But if I check the file /app/code/core/Mage/Sitemap/etc/config.xml it seems to

前端工程师与搜索引擎 网站SEO优化

拥有回忆 提交于 2019-12-09 21:45:41
标签语义话的好处: 1.提高搜索引擎 SEO(搜索引擎优化) 2.让代码开发者更加高效的工作,简化代码标签的使用 搜索引擎的工作原理 :网络蜘蛛爬虫,不断升温去收集关键字 前端工程师如何优化? 一关键词策划 1为了搜索引擎更好的识别网站的核心内容,关键词布局要合理 2.关键词布局合理的几点建议: 1网站的logo通过alt以及title标签来设置关键字 2导航是作为仅次于网站logo权重分配的地方,在导航上布局用户搜索的关键词 3.h1,h2,h3标签上做关键字 4在文章的段首,段中,段尾各穿插一个关键词,适当穿插,不影响阅读 3关键词密度保持在2%-8%之间。 4关键词密度过低:针对网站内容较少的情况,在图片穿插alt属性,增加title标签,适当做一些内链,不要刻意堆砌,集中在一个地方 5关键词密度过高:会对搜索引擎判断成优化过度。查看网页源代码,对关键词密集的地方进行处理,进行适当的删减 二网页布局策划与设计 1主导航覆盖面要广,尽量使用静态导航(网站导航主要功能在于引导用户方便网站内容网站导航栏覆盖面不广容易造成流量缺失) 2左侧尽量分出二级导航(二级导航可以直观的满足用户的需求,完成良好的用户体验) 3图文形式要做到产品在上,文字在下 4js特效要放在body之后(js放在后面可以提升网站的打开速度) 5首页栏目要多,尽量提升丰富度 6采用标准化的div网页布局

XSLT does not work when I include xmlns=“http://www.sitemaps.org/schemas/sitemap/0.9”

两盒软妹~` 提交于 2019-12-09 14:42:35
问题 My Google sitemap renders well through XSLT fine without the xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" in the < urlset > element, however when included, my foreach statement doesn't work and nothing renders in the template. My code's below. Thanks for your help. XML <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>{site_url}</loc> <lastmod>{current_time format="%Y-%m-%d"}</lastmod> <changefreq>monthly</changefreq> <priority>0.5</priority> </url> </urlset> XSL