sitemap

Updateable Google Sitemap for ASP.NET 3.5 Web App Project

房东的猫 提交于 2019-12-12 18:34:54
问题 I am working on an ASP.NET 3.5 Web Application project in C#. I have manually added a Google-friendly sitemap which includes entries for every page in the project - this is not a CMS. <url> <loc>http://www.mysite.com/events.aspx</loc> <lastmod>2009-11-17T20:45:46Z</lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url> The client updates events using an admin back-end. Other than that, the site is relatively static. I'm trying to decide on the best way to update the <lastmod>

Should I list PDFs in my sitemap file?

做~自己de王妃 提交于 2019-12-12 10:29:39
问题 Should I add PDFs to my XML sitemap? I want to know if Google will crawl the PDFs. 回答1: Yes, Google crawls PDFs. See the Search Console Help article for a list of file types indexed. 回答2: Absolutely! If you have "separate pages" that make up the whole of your website, you would be better off to include these pages on your XML site map. Remember that the purpose of the XML site map is to help search engines understand what content is available on your website - PDF's included! Don't forget to

Build sitemap.xml by Java Spring [duplicate]

被刻印的时光 ゝ 提交于 2019-12-12 09:54:12
问题 This question already has answers here : Serving sitemap.xml and robots.txt with Spring MVC (2 answers) Closed 2 years ago . I'm building a sitemap.xml by Spring MVC @XmlRootElement(name = "urlset") public class XmlUrlSet{ @XmlElements(@XmlElement(name = "url", type = XmlUrl.class)) private List<XmlUrl> sitemap = new ArrayList<XmlUrl>(); public void addUrl(XmlUrl xmlUrl) { sitemap.add(xmlUrl); } public List<XmlUrl> getXmlUrls() { return sitemap; } } And it renders like this: <urlset> <url> ..

How to scrape all contents from infinite scroll website? scrapy

时间秒杀一切 提交于 2019-12-12 08:32:41
问题 I'm using scrapy. The website i'm using has infinite scroll. the website has loads of posts but i only scraped 13. How to scrape the rest of the posts? here's my code: class exampleSpider(scrapy.Spider): name = "example" #from_date = datetime.date.today() - datetime.timedelta(6*365/12) allowed_domains = ["example.com"] start_urls = [ "http://www.example.com/somethinghere/" ] def parse(self, response): for href in response.xpath("//*[@id='page-wrap']/div/div/div/section[2]/div/div/div/div[3]

Make clean URLS and retrieve query string

女生的网名这么多〃 提交于 2019-12-12 05:03:57
问题 Is there a way to insert relative URLS in php code such as /forums/(forumID)/ into tags while setting up my site? Then when I am trying to get which forumID the current page is, to get it via a $_GET request without using a template system like Smarty, CakePHP etc or Apache rewrite module? Or is it a huge headache? I just want to be able to not be bound to one web server type (Apache). 回答1: ... carried on from OP comments. These frameworks read the request again in their respective languages

Why is my sitemap file considered empty?

谁都会走 提交于 2019-12-12 03:09:34
问题 I have a robots.txt file in the root of my site which has this one line in it: Sitemap: http://www.awardwinnersonly.com/sitemap.xml The sitemap.xml is also in the root of the site, and contains this text: <?xml version="1.0" encoding="UTF-8"?> -<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http:

Optimal number of URLs in sitemaps URLset

我怕爱的太早我们不能终老 提交于 2019-12-12 02:53:53
问题 I’m trying to find the best approach to create my sitemap (I deal with a huge number of URLs). I have an XML Sitemap with a tree-structure, it’s composed of many sitemap.xml. Actually I have max 1000 URLs for each sitemap.xml. What's the optimal number of urls for each sitemap.xml? Does Google prefers a larger number of URLs (greater than 1000), or less URLs distributed in more XML files? 回答1: From the sitemaps.org protocol specification: You can include up to 50,000 URLs in each Sitemap file

Typecho常用插件

血红的双手。 提交于 2019-12-12 00:09:41
文章相关插件 RandomArticleList -- 随机日志 Fimg -- 缩略图(调用文章图片附件) Sticky -- 首页文章置顶 CompressHTML -- 整站html代码精简及替换 ShortLinks -- 文章外链自动转换成内链 editG -- editg编辑器增强 KindEditor -- kindedit精简版3.52版本 Meting Player -- 在线音乐播放器 cPlayer -- 漂亮的html5音乐播放器 CodeHighlighter -- 代码高亮基于prismjs KaTeX4Typecho -- 文章输入数学公式 评论相关插件 CommentFilter -- 评论过滤 SmartSpam -- 智能评论过滤 CommentToMail -- 新评论邮件通知(smtp发信) Comment2wechat -- 新评论微信通知 LoveKKComment -- 评论邮件通知(sendcloud发信) Comment2Telegram -- 新评论推送到telgram TeComment -- 评论增强,异步加载、ajax提交等 Smilies -- 评论表情插件(羽中修改版) SEO插件 BaiduSubmit -- 自动提交百度收录 AMP/MIP -- 自动生成并提交amp/mip格式 Sitemap.xml --

can not sitemap after url rewrite

筅森魡賤 提交于 2019-12-11 18:19:29
问题 I have written a rewrite rule in the .htaccess file for my website page: RewriteRule ^nice_url/$ ?p_action=user_profile&post_author=45 [L] The full link is: "http://www.example.co.il/nice_url/" it works perfect. BUT, when I try to create a sitemap (e.g. with http://www.web-site-map.com/), I have an indication that the link "http://www.example.co.il/nice_url/" is broken. Why? The link is working fine. Why is it indicated as broken? Thanks! 回答1: You can just add another rule to externally

How to change localhost URL in Hybris Sitemap XML

穿精又带淫゛_ 提交于 2019-12-11 15:49:38
问题 I am trying to create a sitemap.xml for my Hybris site by going out of the box way and copying the ImpEx given in out of the box store in my site.impex. How to change localhost URL in Hybris Sitemap XML? The sitemap.xml generated after running the cronjob consists of multiple tags, which in turn contain the location of the different sitemap page types. Here in product and categories, most of the products and categories are visible, but the issue here is that they begin with localhost. Should