Adding human readable Google sitemap
by Leion on Jun.02, 2006, under Howtos, Technology, Wordpress
This aims to describe the steps in getting a human readable Google sitemap into the WordPress blogging system. First of all, download the google sitemap generator plugin.
NOTE: If you downloaded version 3.1.0.1 or newer, you may skip the steps below. The new version already support the human-readableness out of the box. The information below is applicable only for the older versions.
Open up the php file, look for line 1100 for this line.
$s.="<!-- sitemap-generator-url=\"http://www.arnebrachhold.de\" sitemap-generator-version=\"2.7.1\" -->\n"; |
Add the following line after it.
$s.="<?xml-stylesheet type=\"text/xsl\" href=\"gss.xsl\"?>\n"; |
Now save the file, upload and activate it.
Make a sitemap.xml file on the blog root and make it writable.
Download the gss.xsl stylesheet to display the xml file. Read more about the style sheet here.
Save it to the same location as your sitemap.
Now, edit the .htaccess file and add at the bottom the following:
AddType application/xml .xsl |
Now the stylesheet can can be viewed when it is opened. So you can just add it to your page as a regular link. I put mine in the sidebar. The sitemap can be read by humans and google bots now!
16 Comments for this entry
14 Trackbacks / Pingbacks for this entry
-
?? Blog » Search Engine Optimization for Wordpress
July 16th, 2006 on 12:18 pm[...] Make your sitemap human readable (http://blog.leion.net/2006/06/02/adding-human-readable-google-sitemap/) [edit] [...]
-
SEO in Wordpress | AskApache.com
November 18th, 2006 on 1:45 pm[...] Make your sitemap human readable (http://blog.leion.net/2006/06/02/adding-human-readable-google-sitemap/) [...]
-
Lee.org » Installed Sitemap Generator Plugin
March 6th, 2007 on 7:20 pm[...] is that the sitemap (in the sidebar too) is pretty well human readable and searchable via this tool. tb – possibly related posts-Installed Search Everything Plugin-Installed Adhesive [...]
-
-
-
Seo - ??????????? ?? ??????? ?? ???????? » Blog Archive » ??????????? ?? ???????? ?? Wordpress
July 23rd, 2008 on 1:58 am[...] Make your sitemap human readable [...]
-
Google sitemap
July 23rd, 2008 on 3:06 am[...] describe the steps in getting a human readable Google sitemap into the WordPress blogging system. Adding human readable Google sitemap | World of Leion Sitemaps Generator for [...]
-
Optimiser son référencement avec Wordpress
August 19th, 2008 on 1:21 am[...] Make your sitemap human readable [...]
-
Adding human readable Google sitemap – World of Leion | WordPress News
July 24th, 2010 on 1:07 am[...] Excerpt from: Adding human readable Google sitemap – World of Leion [...]
-
SEO beginner’s guide | Lightspeed WordPress Help
July 30th, 2010 on 7:49 pm[...] Make your sitemap human readable [...]
-
Search Engine Optimization for WordPress « WordPress Service Blog
November 14th, 2011 on 11:40 am[...] Make your sitemap human readable [...]
-
Search Engine Optimization for WordPress «
November 21st, 2011 on 10:30 pm[...] Make your sitemap human readable [...]
-
Search Engine Optimization for WordPress | Media Developer
February 29th, 2012 on 3:50 pm[...] Make your sitemap human readable [...]
-
Test Post - Web Smashing
February 14th, 2013 on 11:42 pm[...] Make your sitemap human readable [...]
September 3rd, 2006 on 2:26 am
hi, is this mod compatible with the latest sitemap version?
September 3rd, 2006 on 3:04 am
This mod changes the layout file so that the presentation is different. Hence This should be compatiable with the latest sitemap version
September 13th, 2006 on 4:45 pm
Thanks for this link, I have now added it to the sitemap generation code for WordPress. One change, however, I am using the latest beta version, so you need to add the following code (rather than your code detailed above) $this->AddElement(new GoogleSitemapGeneratorXmlEntry('<?xml-stylesheet type="text/xsl" xhref="gss.xsl"?>')); Which should come just after line 1530 now. Thanks again for a great link. Dominic.
September 16th, 2006 on 4:06 pm
Thanks for the update. For some reasons, the version 3 do not work for me.
October 28th, 2006 on 7:38 am
Cool thanks for the info dude! it will come in handy.
November 14th, 2006 on 6:55 am
The line Dominic suggested didn't work for me until I changed 'xhref="gss.xsl" mce_href="gss.xsl"' to 'href="gss.xsl" mce_href="gss.xsl"' I'm now using google sitemap generator plugin v3, and the formatting from SourceForge and put it together as a zip at http://thatsnowsthegoat.com/index.php/archive/google-and-human-readable-sitemap/ Both versions 1.4 and 1.5a are available.
November 18th, 2006 on 3:25 am
I have a question – how do you establish a sitemap google can find if you have your site setup to handle all page requests not in the database to a set page, like redirect back to the main domain – if you dont have that page in the database. is it possible to put your sitemap somewhere else and have google use it – like in an IP accessed ftp or on another domain? Thoughts?
November 18th, 2006 on 11:13 am
First of all, the google sitemap file should be located at the root of your site if you have many many sub domains that you want to add in. Pages from other domains will not be able to reported in it. These pages need extra sitemap files. For pages in your domain that is not in the database, you can add them in the google sitemap generator to have them included in the sitemap.
November 22nd, 2006 on 4:09 am
Excellent article
November 22nd, 2006 on 6:37 am
I don;t get coment #10 is it spam??
March 7th, 2007 on 11:35 pm
I’ve used Google sitemaps on a few sites now and each time it’s had an adverse effect on my rankings. Has anyone else experienced this?
March 8th, 2007 on 12:00 am
Google has been bringing in traffic for me. I think this is because I have the sitemap
May 13th, 2009 on 3:10 am
Great work …. Thanks for your ideas.
more helpful for us and anyone who needs information
thanks from evden eve nakliyat
August 10th, 2009 on 9:03 pm
this is superb idea
December 23rd, 2009 on 5:17 am
how do you establish a sitemap google can find if you have your site setup to handle all page requests not in the database to a set page, like redirect back to the main domain ? thanks
July 5th, 2012 on 4:00 pm
Thanks for sharing information about the sitemap. Sitemap is very useful for user and google crawler also.