sitemap

Sitemap on a highly dynamic website

一个人想着一个人 提交于 2019-11-28 03:23:32
Should a highly dynamic website that is constantly generating new pages use a sitemap ? If so, how does a site like stackoverflow.com go about regenerating a sitemap? It seems like it would be a drain on precious server resources if it was constantly regenerating a sitemap every time someone adds a question. Does it generate a new sitemap at set intervals (e.g. every four hours)? I'm very curious how large, dynamic websites make this work. On Stackoverflow (and all Stack Exchange sites), a sitemap.xml file is created which contains a link to every question posted on the system. When a new

What is the best way to generate a sitemap? [closed]

前提是你 提交于 2019-11-28 00:14:54
问题 I need to build a sitemap for my website. The url will be "www.example.com/mysitemap.html". I know that there are some tools that generate automatically an XML file that contains the reachable URLs and also improve the SEO. So my questions are: How can I build this HTML page going from the generated XML? Or am I wrong and this kind of HTML page is built manually? If not, how do we integrate the XML and convert it to the website? Thank you very much. Regards. 回答1: If your site architecture is

ASP.NET web.sitemap - roles do not seem to control visibility?

心已入冬 提交于 2019-11-27 21:43:15
问题 I have a (simple) sitemap and am trying to figure out why a certain sub-menu is always visible. <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/Login.aspx" title="Home" description="RivWorks" roles="*"> <siteMapNode url="" title="Dashboard" description="" roles="campaigns, auto_negotiation"> <siteMapNode url="CampaignBuilder.aspx" title="Campaign Manager" description="Manage your campaign settings" roles=

Sitemap generation with Codeigniter

a 夏天 提交于 2019-11-27 17:28:10
I need to generate a sitemap in a Codeigniter application. I found a few libraries but all of them are outdated and have bug. Do I really need a separate library for this? I want to know the best way to generate the sitemap in Codeigniter . roev You can use my code: controllers/seo.php Class Seo extends CI_Controller { function sitemap() { $data = "";//select urls from DB to Array header("Content-Type: text/xml;charset=iso-8859-1"); $this->load->view("sitemap",$data); } } views/sitemap.php <?= '<?xml version="1.0" encoding="UTF-8" ?>' ?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0

Can a relative sitemap url be used in a robots.txt?

天涯浪子 提交于 2019-11-27 17:05:25
In robots.txt can I write the following relative URL for the sitemap file? sitemap: /sitemap.ashx Or do I have to use the complete (absolute) URL for the sitemap file, like: sitemap: http://subdomain.domain.com/sitemap.ashx Why I wonder: I own a new blog service, www.domain.com, that allow users to blog on accountname.domain.com. I use wildcards, so all subdomains (accounts) point to: "blog.domain.com". In blog.domain.com I put the robots.txt to let search engines find the sitemap. But, due to the wildcards, all user account share the same robots.txt file.Thats why I can't use the second

generate dynamic sitemaps in a laravel project without using composer

断了今生、忘了曾经 提交于 2019-11-27 16:58:48
问题 I want to generate Dynamic sitemap for my laravel project. I had already searched in so many sites for an answer. some of them describes it using composer. I didn't get how to do that. and in some other sites they wrote codes to get urls from db in loops. In my project db I didn't saved any urls. my project is a site for doctor and patients. so is there any one knows how to write php / laravel codes for dynamic sitemap generation .? Edit I'm a newbie to laravel so i'm just unfamiliar with

Google sitemap files for Rails projects

强颜欢笑 提交于 2019-11-27 16:51:32
Is there an easy way to create a sitemaps file for Rails projects? Especially for dynamic sites (such as Stack Overflow for example) there should be a way to dynamically create a sitemaps file. What is the way to go in Ruby and/or Rails? What would you suggest? Is there any good gem out there? Add this route towards the bottom of your config/routes.rb file (more specific routes should be listed above it): map.sitemap '/sitemap.xml', :controller => 'sitemap' Create the SitemapController (app/controllers/sitemap_controller): class SitemapController < ApplicationController layout nil def index

What should be the name of the sitemap file for Google SEO?

旧街凉风 提交于 2019-11-27 08:40:42
问题 I created a sitemap for my website that contains the below code: <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>http://www.example.com/</loc> </url> <url> <loc>http://www.example.com/aboutus.html</loc> </url> <url> <loc>http://www.example.com/contactus.html<

Limitation for google sitemap.xml file size

此生再无相见时 提交于 2019-11-27 06:33:53
问题 can any one please let me know the memory limitation(MB) of google sitemap.xml file size. 回答1: According to the Latest Update: 01 Jan 2017 Any Sitemap file is limited to 50MB (uncompressed) with a maximum of 50,000 URLs. And a Sitemap index file (not to be confused with a Sitemap file) can include up to 50,000 Sitemaps. So, for a single Sitemap index file, the maximum capacity of URLs and storage could be calculated as described below: in terms of URLs: 50,000 sitemaps = ( 50,000 * 50,000 )

Creating an XML sitemap with PHP

别说谁变了你拦得住时间么 提交于 2019-11-27 05:36:03
问题 I'm trying to create a sitemap that will automatically update. I've done something similiar with my RSS feed, but this sitemap refuses to work. You can view it live at http://designdeluge.com/sitemap.xml I think the main problem is that its not recognizing the PHP code. Here's the full source: <?php include 'includes/connection.php'; header("Content-type: text/xml"); echo '<?xml version="1.0" encoding="UTF-8" ?>'; ?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http:/