Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Hot answers tagged

10

You can have multiple sitemaps per website, and this is a great example of when that makes sense. You should make sure you have a Sitemap Index listing each of your sitemaps. It will probably look something like: <?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> ...


9

The value of the xmlns attribute is to uniquely identify a namespace (the "namespace URI"). It does not relate to whether your site is serving content over HTTP or HTTPS - for this it makes no difference. The sitemaps.org site defines the protocol using http://www.sitemaps.org/schemas/sitemap/0.9 as the recognised namespace - so this should really be the ...


8

In XML the ampersand has to be escaped, so change it to: &amp;


6

According to HTML5 Reference, xmlns is relevant for XHTML but not for html5. DOCTYPE is cas insensitive : In HTML, the DOCTYPE is case insensitive, except for the quoted string "about:legacy-compat", which must be written in lower case.


6

You are asking two questions here. Does a sitemap need to be XML? The simple answer is no, it doesn't have to be XML. It can be XML file, a text file or RSS/Atom feed (which is basically XML), HTML Sitemap HTML Sitemaps: These are used on your website to display the layout in layers on your website to any customer that would wish too (don't know why they ...


5

The HTML5 drafts are partly rather complicated and abstract. But on the basis of somewhat vague statements in them as well as the http://validator.w3.org behavior (which can be expected to reflect the intentions of the authors of HTML5 drafts, the answers seem to be: The xmlns attribute is allowed but not required in XHTML syntax (XHTML serialization), In ...


5

I believe you are looking for schema.rdfs.org - pertinent links: RDF/XML JSON CSV


5

Your problem is not that SVG images are getting indexed. The items in your screenshot are image directories. If you visit those URLs you will likely see a list of files that are in the directories. Since they are image directories, the generated index page uses the word "svg". This is a feature of web servers called "directory index". If you have ....


5

You can validate your sitemap on https://www.google.com/webmasters/tools. It will give an error when you use https to refer to the schema. I have also seen other sitemap validators that refuse to validate the https version of the namespace, so using http might be the only correct option, even when your site only uses https.


5

Because it is an XML file, the sitemap doesn't support meta tags. Instead it is technically an HTTP header: X-Robots-Tag: noindex You don't want to remove it that header. It prevents the XML sitemap itself from appearing in search results, it doesn't prevent the URLs listed in it from getting indexed. If you don't put a noindex in, the sitemap itself ...


4

RSS is a tool. It's used by subscribers to quickly/easily see when a site they're interested in is updated/adds new content. If you think your feed subscribers would like to be notified of such updates and might be interested in viewing it (possibly even for the first time), then sure add it to the feed. If you think most of your subscribers wouldn't care ...


3

From Google: If your site targets users in many languages and, optionally, countries, you can use Sitemaps to provide Google with rel="alternate" hreflang="x". These annotations help Google serve the correct language or regional URL to searchers. That article will tell you more about how to do that. (Summary of that article just in case it moves or is ...


3

It has been verified that a PHP file can be used as a sitemap file such as sitemap.php I checked http://sitemaps.org (the website with the specification information for sitemaps) and there is no mention that the file must be saved in the .XML format. I will have to say that yes, it will work, as long as Google does not have a problem with the extension for ...


3

AFAIK, Google doesn't process XSLT templates. So while the text content of the XML can be indexed by Google, it'll just be in the form of the plain XML document, meaning most of the document semantics won't be understood by Google aside from some shared attributes and elements between XML and XHTML. I don't know if the situation is any different for other ...


3

Whether you "should" is your own decision. But there are different ways to approach it if you do. Some sites just edit the original post directly, and tack something like "[UPDATED]" on to the headline. [example at VentureBeat] This has two potential effects, which cover everyone: If someone's feedreader hadn't already fetched the item, then it will show ...


3

That HTML document was created by Microsoft Office which puts that meta tag in automatically. Microsoft office documents contain reference to other files. When office converts the file to HTML it includes that list in this format. Google reports that it runs into it occasionally when crawling the web. As far as I know, only Microsoft Office itself makes ...


3

Andrew Loft's suggestion of a sitemap index file is perfectly acceptable. I agree with him that multiple sitemaps per site is OK and your use case for it is a good one. There are two other ways to let Google know about multiple sitemaps that work just as well: Submit all the sitemaps to Google Webmaster Tools You can submit a sitemap, no matter what it ...


3

If you create a page using Joomla and call it 'sitemap' it should display the content of that created page in the theme framework 'on the fly' for you. Joomla does not create a sitemap.html or sitemap.php file and put it on your server. If you created a sitemap.html file separately on your own that will not display unless you save the file to your server ...


3

Per the schema, tLastMod is the union of xsd:date and xsd:dateTime. Since you provide hours, you are not in the first case, so your string should conform to the XSD dateTime type, and it does not: you need to specify the part with seconds. See https://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#dateTime-lexical-mapping for the full format. So, if you ...


2

Do you mean DOCTYPE or do you really mean mime type? And, why do you prefer sending html to IE and xhtml to everyone else? Seems like an unnecessary complication. As a side note, why would anyone whose audience is the general public prefer serving XHTML over HTML? I should probably ask that in another thread if I really want an answer...


2

This is pretty good documentation http://support.google.com/webmasters/bin/answer.py?hl=en&answer=80472 More information is available in webmaster tools http://www.google.com/webmasters/videositemaps/


2

I know this is three years old, but I came across it looking for the same answer today, for Office 2010 anyway there is an option to save as "filtered HTML" without the extra Microsoft code : About using filtered HTML When you save Web pages or send e-mail messages in HTML format with Microsoft Word, additional tags are added so that you can continue ...


2

New content should go at the top of the feed bumping old content off of the bottom. You shouldn't put all of your articles in your RSS feed as that can make it very large and unweildy. Generally RSS feeds are limited to about ten items although I've seen as much as 50 in a feed. If you publish content often put more items in your feed so users can be sure ...


2

It sounds like you're trying to create a Polyglot Document (and I sound like Clippy!) Essentially, that's an HTML5 document which is also valid XML. Basically, you just need to carry on as normal, writing valid HTML5. You will need to close any self-closing elements (e.g. <br> becomes <br />, same for img, source, hr, etc) and make sure all ...


2

As an advice, if you're current skills are limited, and the project is a little too much, don't take it, there will be tons of other oportunities when you're skills have increased. Having said so, i recommend that you invest time into any one of available php frameworks, some are incredibly easy to work with, and will make your tasks super easy. Building ...


2

After an extensive search...it doesn't seem possible to exclude terms found in your site and search queries from appearing in Google's Custom Search Engine autocomplete. You might however look at providing a front-end to the search form using something like jQuery Autocomplete, and disabling the autocomplete option in Custom Search. Then you can populate ...


2

This is happening because you are using an invalid namespace, the article your followed is outdated and should of never be used. Follow the W3C XML schema recommendation to get rid of these errors removed. More explained about the namespace location. SOURCE XML Schema instance namespace See the XML Schema Recommendation for an ...


2

My question is would using a slite3 database for each user within one web application be viable? It is "technically" possible but highly unorthodox. Using sqlite this way would be well outside the assumed "solution space" for which it was designed. So, viable ? No. Or would it be too hard on server resources? It is such an unexpected use-case I doubt ...


2

The solution you're looking for is actually a lot less painstaking than your example makes it seem. I'll start from the top and work my way down with explanations. For sake of ease, I'm going to assume the website is constructed from static files hosted on a remote fileserver. Point #1 - Structure: I would strongly encourage a bit of restructuring. Create ...


2

According to the standard the open search document can be placed anywhere under your web directory as long as it can be accessed by URL and you simply add the open search meta block to each page linking to the open search description file. True common practice is to name it open search.XML and to place it in the web root but the standard does not require ...


Only top voted, non community-wiki answers of a minimum length are eligible