sitemap

How detailed should my sitemap be for a multilingual site?

感情迁移 提交于 2019-12-20 03:11:32
问题 I have a one page website which includes an English main page, and a French Main Page. One can access my website through the following URLs: ENGLISH VERSION OF MAIN PAGE www.example.org www.example.org/index.html example.org example.org/index.html FRENCH VERSION OF MAIN PAGE www.example.org/fr www.example.org/fr/index.html example.org/fr example.org/fr/index.html For optimal search engine indexing, should I include all of these URLs in my sitemap (with both http:// and https:// )? If not,

Dynamically built SiteMapPath in asp.net

给你一囗甜甜゛ 提交于 2019-12-20 01:05:25
问题 I'm trying to build a dynamic site map on my site using SiteMapPath. Should be like this: Home > Products > %product_name% > Prices where %product_name% is set dynamically in the runtime, depending on the user's choice. I've read many articles on the theme and choose this http://harriyott.com/2007/03/adding-dynamic-nodes-to-aspnet-site.aspx. It dynamically changes the web.sitemap XML file. The problem is that it still builds the sitemap only once in the beginning and then uses it on each page

Dynamically built SiteMapPath in asp.net

自古美人都是妖i 提交于 2019-12-20 01:03:07
问题 I'm trying to build a dynamic site map on my site using SiteMapPath. Should be like this: Home > Products > %product_name% > Prices where %product_name% is set dynamically in the runtime, depending on the user's choice. I've read many articles on the theme and choose this http://harriyott.com/2007/03/adding-dynamic-nodes-to-aspnet-site.aspx. It dynamically changes the web.sitemap XML file. The problem is that it still builds the sitemap only once in the beginning and then uses it on each page

Dynamically built SiteMapPath in asp.net

╄→гoц情女王★ 提交于 2019-12-20 01:02:16
问题 I'm trying to build a dynamic site map on my site using SiteMapPath. Should be like this: Home > Products > %product_name% > Prices where %product_name% is set dynamically in the runtime, depending on the user's choice. I've read many articles on the theme and choose this http://harriyott.com/2007/03/adding-dynamic-nodes-to-aspnet-site.aspx. It dynamically changes the web.sitemap XML file. The problem is that it still builds the sitemap only once in the beginning and then uses it on each page

ASP.NET MVC: Keeping last page state

最后都变了- 提交于 2019-12-19 09:09:10
问题 Here's the situation: i have a SearchPage where an user can make a complex search. Nothing really unusual. After the results are displayed, the user can select one of them and move to another Page (Like a Master/Detail). I have a breacrumb which holds the places where the user has been and it can have more than 4 levels (Like Main -> 2Page -> 3Page -> 4Page -> NPage). What i want is to maintain the state of each control on my complex search page, if the user uses the breacrumb to navigate

XSLT - Replace apostrophe with escaped text in output

ⅰ亾dé卋堺 提交于 2019-12-19 04:18:19
问题 I'm writing an XSLT template that need to output a valid xml file for an xml Sitemap. <url> <loc> <xsl:value-of select="umbraco.library:NiceUrl($node/@id)"/> </loc> <lastmod> <xsl:value-of select="concat($node/@updateDate,'+00:00')"/> </lastmod> </url> Unfortunately, Url that is output contains an apostrophe - /what's-new.aspx I need to escape the ' to &apos; for google Sitemap. Unfortunately every attempt I've tried treats the string ' &apos; ' as if it was ''' which is invalid - frustrating

How to generate the correct sitemap namespace using JAXB and Spring @ResponseBody in controller?

时间秒杀一切 提交于 2019-12-18 08:32:49
问题 Everything is working fine with the exception that I cannot create the namespace correctly. Any help is much appreciated! My controller: @Controller @RequestMapping("/sitemap") public class SitemapController { public @ResponseBody XMLURLSet getSitemap(){ XMLURLSet urlSet = new XMLURLSet(); //populate urlList urlSet.setUrl(urlList); return urlSet; } } My urlset: @XmlRootElement(name = "url") public class XMLURL { String loc; @XmlElement(name = "loc") public String getLoc(){ return loc; }

用pelican搭建完美博客

て烟熏妆下的殇ゞ 提交于 2019-12-18 02:49:05
前面有文章介绍本站采用了 Python 编写的 Pelican 静态生成博客系统, 之所以没有使用当前很火的 Jekyll , 是因为它是 Ruby 编写, 而我又对 Ruby 没有啥兴趣, 所以还是选择了使用了我熟悉的Python编写的这套系统, 我用了一段时间,打算将使用经验分享出来 介绍 Pelican 是一套开源的使用Python编写的博客静态生成, 可以添加文章和和创建页面, 可以使用 MarkDown reStructuredText 和 AsiiDoc 的格式来抒写, 同时使用 Disqus 评论系统, 支持 RSS 和 Atom 输出, 插件, 主题, 代码高亮等功能, 采用 Jajin2 模板引擎, 可以很容易的更改模板 安装 可以从 github 克隆最新的代码安装, 并且建议在 virtualenv 下使用: 建立 virtualenv virtualenv pelican # 创建 cd pelican sh bin/activate # 激活虚拟环境 上面建立了一个Python的虚拟环境(这个命令不是内置可以使用 easy_install virtualenv 安装) 从github克隆最新代码安装Pelican git clone git://github.com/getpelican/pelican.git # 代码 cd pelican python

Globalization in MVCSiteMapProvider

这一生的挚爱 提交于 2019-12-17 20:40:00
问题 Hi have a sitemap on my mvc 4 application like this: <?xml version="1.0" encoding="utf-8" ?> <mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0 MvcSiteMapSchema.xsd"> <mvcSiteMapNode title="Users" controller="User" action="Index" area="" preservedRouteParameters="culture,projectid"> <mvcSiteMapNode title="New" controller="User" action

HTML: How to get my subpages listed on a google search

不羁的心 提交于 2019-12-17 15:25:08
问题 When you go to Google and perform a search, it will return either one of two type of results: just the title of your webpage, or the title of your web-page plus , lists subpages it found on that web site Here is an example of option #2: http://37assets.s3.amazonaws.com/svn/grub-ellis-googlelisting.png My website on a google.com search only lists my web page title (option #1), how do I get google to list my subpages on the search results (option #2)? Is is an HTML issue? How do I get Google to