sitemap

problems with sitemap xml and xsl - no doctype found and incorrect syntax

巧了我就是萌 提交于 2019-12-24 19:31:05
问题 I have a sitemap in xml format which give me an error "no doctype found". Maybe there is something wrong with the source code, I hope that someone helps me with syntax corrected. I'm new at xml/xsl syntax so even if the sitemap works I have no idea to make validated my sitemap since I get always no doctype found... I used the copy instruction in order to put the html output to the browser with the doctype... If I try to use output xml I see only plain text instead of html and the doctype is

How to Bind SiteMap Treeview datasource using c#

妖精的绣舞 提交于 2019-12-24 17:24:11
问题 I have SiteMap Datasource control on my page <div id="content_inside"> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> <asp:TreeView ID="TreeView1" ExpandDepth="2" </asp:TreeView> </div> No I am trying to bind it's tree view using the below code snippet protected void Page_Load(object sender, EventArgs e) { var context = new moviescontext (); var movies= context.movie.GetAll(ref context); if (!IsPostBack) { TreeView1.DataSourceID = "SiteMapDataSource1"; TreeView1.DataSource =

Why is my site showing multiple broken links in tools when they are all working?

丶灬走出姿态 提交于 2019-12-24 13:43:22
问题 We have built a new site warmseal.westserve.co.uk. When we run it through broken link checker tools it is showing that we have multiple broken links which in reality work. For example the following link in the top-wrapper is showing as a broken link: <a href="/callback/" id="call-back" class="left"><img src="/templates/images/phone.png" class="icon" />Request a call back<img class="arrow" src="/templates/images/arrow-right.png"/></a> Any ideas why some links are showing as broken links? What

Should I encode special character in my sitemaps?

百般思念 提交于 2019-12-24 12:42:24
问题 I have some URL that contains special characters. For example: http://www.example.com/bléèàû.html If you type this URL in a browser, my web server would show the correct page (it can handle special character). I have looked at the sitemaps specs and it's not clear whether or not sitemaps file can contain special character. From what I understand of the protocol, if the URL is working fine and the server serves the correct page and the XML file is UTF-8 encoded, then it's ok. For example, this

Dynamically pass querystring to sitemap

无人久伴 提交于 2019-12-24 12:11:33
问题 Hi I has one sitemap in masterpage. I need to dynamic pass querystring to my sitemap. Did anyone get experience with this. Here is my code web.sitemap <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="Employee Benefit" description=""> <siteMapNode url="~/Module/EB/Company/CompanyList.aspx" title="Company list" description="Company List" > <siteMapNode url="~/Module/EB/Company/CompanyDetail.aspx" title=

No WordPress plugin able to generate a sitemap

久未见 提交于 2019-12-24 10:47:24
问题 A while ago I managed to install Virtualmin on my VPS and am currently running WordPress. I'm also using Nginx. After restoring my blog back from the backups I made, I was able to get it up and running and started to set up the plugins. I initially used yoast, and tried to generate a sitemat but it didn't work - I kept getting a 404 error. I even checked using FTP and no file was found. So I looked up for solutions online and tried them all, refreshing permalinks, adding htaccess rules,

Is it possible to dynamically modify role permissions and also generate the appropriate sitemap/menus in ASP.NET?

北战南征 提交于 2019-12-24 05:58:56
问题 I'm doing some research on security and sitemaps in ASP.net and am unfortunately running short on time. I have not worked too much with ASP.net security so I'm not completely sure if I'm heading in the right direction. Here is my problem: I have a public website (i.e. on the internet) that will allow any user to sign up to. The website will be developed using ASP.net webforms. These users may create other users and assign these users different roles. Different roles have different

How to arrange sitemaps for main site and for blog (in subdomain)

不问归期 提交于 2019-12-24 02:16:28
问题 I've got two websites: the main site and a blog that has posts that relate closely to the content of the main site. The blog is in the subdomain "blog." wwww.example.com blog.example.com Content on the main site doesn't change that often, but content on the blog changes weekly. The blog is just a Wordpress site and capable of generating it's own sitemap. I'm struggling to figure how to arrange the sitemaps. I can think of two options, but I'm not sure what the best one is. Maybe there's a

How to assign specific sitemaps for specific crawler-bots in robots.txt?

时光毁灭记忆、已成空白 提交于 2019-12-23 17:14:57
问题 Since some crawlers don't like the sitemap versions made for Google, I made different sitemaps. And there is an option to put Sitemap: http://example.com/sitemap.xml to robots.txt. But is it possible to put it kinda like this: User-agent: * Sitemap: http://example.com/sitemap.xml User-agent: googlebot Sitemap: http://example.com/sitemap-for-google.xml I couldn't find any resource for this topic and robots.txt is not something I want to joke around with. 回答1: This is not possible in robots.txt

How to join wagtail and django sitemaps?

安稳与你 提交于 2019-12-23 15:28:42
问题 I'm using wagtail app in my Django project. Is it possible to join django sitemaps (https://docs.djangoproject.com/en/1.11/ref/contrib/sitemaps/) with wagtail sitemaps (wagtail.contrib.wagtailsitemaps)? Tried using django sitemap indexes, but it divide only django sitemap, how I can include wagtail sitemap? 回答1: Wagtail uses the Django sitemap framework since version 1.10. This should allow you to easily combine regular Django sitemaps with Wagtail sitemaps. There is a small catch however;