Difference between revisions of "SUNScholar/Repository Website Metrics/Sitemaps"

From Libopedia
Jump to navigation Jump to search
Line 10: Line 10:
 
#### Sitemap settings #####
 
#### Sitemap settings #####
 
# the directory where the generated sitemaps are stored
 
# the directory where the generated sitemaps are stored
sitemap.dir = /home/dspace/sitemaps
+
sitemap.dir = ${dspace.dir}/sitemaps
  
 
#
 
#
Line 17: Line 17:
 
# be URL-encoded and appended to form the actual URL 'pinged').
 
# be URL-encoded and appended to form the actual URL 'pinged').
 
#
 
#
#sitemap.engineurls = http://www.google.com/webmasters/sitemaps/ping?sitemap=
+
sitemap.engineurls = http://www.google.com/webmasters/sitemaps/ping?sitemap=
  
 
# Add this to the above parameter if you have an application ID with Yahoo
 
# Add this to the above parameter if you have an application ID with Yahoo

Revision as of 15:12, 9 June 2015

Back to Google

Step 1

Edit the following file:

 nano $HOME/source/dspace/config/dspace.cfg

See example below.

#### Sitemap settings #####
# the directory where the generated sitemaps are stored
sitemap.dir = ${dspace.dir}/sitemaps

#
# Comma-separated list of search engine URLs to 'ping' when a new Sitemap has
# been created.  Include everything except the Sitemap URL itself (which will
# be URL-encoded and appended to form the actual URL 'pinged').
#
sitemap.engineurls = http://www.google.com/webmasters/sitemaps/ping?sitemap=

# Add this to the above parameter if you have an application ID with Yahoo
# (Replace REPLACE_ME with your application ID)
# http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=REPLACE_ME&url=
#
# No known Sitemap 'ping' URL for MSN/Live search

Once you've enabled your sitemaps, they will be accessible at the following URLs:

  • HTML Sitemaps: [dspace.url]/htmlmap
  • Google (XML) Sitemaps: [dspace.url]/sitemap

For example you can view SUNScholar maps by clicking on the links below.

http://scholar.sun.ac.za/htmlmap
http://scholar.sun.ac.za/sitemap

Step 2

Enable sitemap generation using automatic job scheduling.

Samples

Click on the following links to view sample sitemap data;

References