sitemap

how to generate XML sitemap with special symbols in the link?

倾然丶 夕夏残阳落幕 提交于 2020-01-05 12:13:41
问题 Hi I am trying to generate google sitemap for my site, how can i make link to contain special symbols like below: <url> <loc>http://example.com/alf-“xxx-yyy”--cache</loc> </url> how can i handle such characters??? i have tried urlencode but this doesn't work :(( Thanks for your help 回答1: The special characters that you are referring to are the directional curly quotes “ and ” . You can use the numeric entity reference for those characters “ and ” , respectively. http://www.dwheeler.com/essays

ASP.net menu only show certain nodes in Web.sitemap

谁说胖子不能爱 提交于 2020-01-04 04:36:46
问题 I have a few items apart of my Web.sitemap file that rely on querystring or session variables. I do not want these items to appear in my menu. Is there a way to hide it from the menu, but still be in the sitemap (for sitepath control). Thanks 回答1: I used this article when I wanted to stop an node from appearing I found this article great: http://runtingsproper.blogspot.com/2009/11/i-bet-you-didn-know-that-adding-custom.html ASP.NET does have functionality to control which nodes you want

UTF-8 encode URLs

帅比萌擦擦* 提交于 2020-01-03 09:20:31
问题 Info: I've a program which generates XML sitemaps for Google Webmaster Tools (among other things). GWTs is giving me errors for some sitemaps because the URLs contain character sequences like ã¾, ã‹, ã€, etc. ** GWTs says: We require your Sitemap file to be UTF-8 encoded (you can generally do this when you save the file). As with all XML files, any data values (including URLs) must use entity escape codes for the characters: & , ' , " , < , > . The special characters are excaped in the XML

Hexo博客SEO优化

て烟熏妆下的殇ゞ 提交于 2020-01-02 10:38:01
Hexo博客SEO优化 添加站点地图 安装插件 修改站点配置文件 添加蜘蛛协议 提交站点到 Google Baidu主动提交链接方法 安装插件 配置 本文章是我自己的个人笔记,有些地方可能介绍的不够清楚。先推荐两个个人感觉写的不错的文章。 Hexo博客Next主题SEO优化方法 Hexo插件之百度主动提交链接 添加站点地图 安装插件 需要安装两个插件来生成 sitemap 文件,前一个是传统的 sitemap,后一个是百度的 sitemap。 npm install hexo-generator-sitemap --save npm install hexo-generator-baidu-sitemap --save 修改站点配置文件 将 sitemap 文件添加到站点配置文件 _config.yml 中,并修改 url 字段的值,其值默认为 http://yoursite.com 。 sitemap : path : sitemap.xml baidusitemap : path : baidusitemap.xml url : https : //mrain22.cn 添加蜘蛛协议 在站点 source 文件夹下新建 robots.txt 文件,文件内容如下: User-agent: * Allow: / Allow: /archives/ Allow:

ASP.NET URL Routing with WebForms - Using the SiteMap

非 Y 不嫁゛ 提交于 2019-12-31 03:08:26
问题 I'm trying to use Url Routing within my existing ASP.NET WebForms site. Thanks to: this link, I got it working. Now I'm trying to use a SiteMap along with my routing. I have a page MyReport.aspx. It is in the SiteMap and accessing the page directly, works fine. I've added a route for /report/{param1}/{param2}. I was hoping the sitemap would resolve the route path (MyReport.aspx) instead of /report/{param1}/{param2}, but no dice. I have seen examples of using the SiteMap with MVC, but this

Pinging google sitemap after every new article submission?

筅森魡賤 提交于 2019-12-29 14:06:30
问题 As you may know, by using the following url, you can 'ping' google to update its record of your sitemap: https://www.google.com/ping?sitemap=URLOFSITEMAP.xml I made a script to do this programmatically after every article submission (I am making a user submitted blog type site). Do you think its a bad idea to do this after every submission and would it be better to do this daily or after some interval? I guess this would come down to whether or not there is a chance that doing this would

Mvcsitemapprovider Multiple paths to the single page

醉酒当歌 提交于 2019-12-29 09:17:08
问题 I want to make breadcrump navigate 3 paths to the same page. Site map is at the bottom. <mvcSiteMapNode title="New" controller="Actions" action="NewActions" area="Promotion"> <mvcSiteMapNode title="Action" controller="Actions" action="ActionTabDetails" area="Promotion"/> </mvcSiteMapNode> <mvcSiteMapNode title="Continues" controller="Actions" action="ContinuesActions" area="Promotion"> <mvcSiteMapNode title="Action" controller="Actions" action="ActionTabDetails" area="Promotion" actionStatus=

Product images are serving from different paths on Product detail page and in sitemap

别等时光非礼了梦想. 提交于 2019-12-25 07:03:07
问题 Product images are serving from different paths in view page & in sitemap. 1) product view page : media/catalog/product/W/i/image-name.jpg : link1 2) http://sitename.com/media/sitemap.xml : media/product/ee7/image-name.jpg : link2 but i want product images should serve from same path in both links: media.phtml <?php $_product = $this->getProduct(); $_helper = $this->helper('catalog/output'); $dexxtz = Mage::helper('productzoom'); $dexxtz->getCss(); $dexxtz->getJs(); ?> <ul id="etalage"> <li>

How to uncompress .xml.gz in windows?

若如初见. 提交于 2019-12-25 03:19:34
问题 I wrote a script to generate the sitemaps for my website, and then compress the files to .gz. Everything seems to be ok, since google can read the urls from the files. But when I download them by accessing them through the corresponding url in the production enviroment (linux), and then open them with winrar (in my local pc), I get garbage, like it was a binary file or something. The same thing works fine in my development enviroment (windows), so it seems to be an OS-dependant thing. Any

laravel 5.4 sitemap error

孤街浪徒 提交于 2019-12-25 01:58:58
问题 I want to install this package in my project https://github.com/spatie/laravel-sitemap but the installation's failed. the error is Anyone encountered this error. or their have other better package for laravel sitemap? any tutorial? thanks everyone :) 回答1: The error message is pretty clear. You're trying to install spatie/laravel-sitemap:^3.3 , which requires laravel/framework:5.5 or higher. So you need to either upgrade to use Laravel 5.5, or use an older version of spatie/laravel-sitemap .