About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
administration:search_engine_optimization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
administration:search_engine_optimization [2020/06/04 15:19] – [Best Practices] demiankatzadministration:search_engine_optimization [2021/08/03 13:50] (current) demiankatz
Line 7: Line 7:
 // This feature was added after the release of VuFind 1.0.1. // // This feature was added after the release of VuFind 1.0.1. //
  
-Several search engines look for sitemap files which list all of the pages of your site and ensure that no content is missed during indexing.  For example, sitemaps are useful in combination with [[http://www.google.com/webmasters/tools/|Google Webmaster Tools]].+Several search engines look for sitemap files which list all of the pages of your site and ensure that no content is missed during indexing.  For example, sitemaps are useful in combination with [[https://search.google.com/search-console|Google Search Console]].
  
-VuFind comes with a simple tool for generating sitemaps.  To use it, follow these steps:+VuFind comes with a tool for generating sitemaps.  To use it, follow these steps:
  
-1. Edit the [[configuration:files:sitemap.ini]] file under your VuFind installation to specify the location of the generated sitemaps and some other settings.  All options are explained by comments within the file.+1. Edit the [[configuration:files:sitemap.ini]] file under your VuFind local directory to specify the location of the generated sitemaps, what to include and some other settings.  All options are explained by comments within the file.
  
-2. Switch to the util folder under your VuFind installation, and run:+2. Run the sitemap generator: 
 + 
 +:!: This is an example command. See also [[administration:command_line_utilities|Command Line Utilities]] for more information on local modules etc.
  
 <code> <code>
-php sitemap.php+cd $VUFIND_HOME 
 +VUFIND_LOCAL_DIR=`pwd`/local php public/index.php util/sitemap -v [additional parameters]
 </code> </code>
  
-This may take some time.  When it is complete, your sitemap file(s) will be generated.+This may take some time.  When it is complete, your sitemap file(s) have been generated.
  
 You may wish to automate this so that sitemaps are built on a regular basis; see the [[administration:automation|Automation]] page for tips on automating VuFind-related tasks. You may wish to automate this so that sitemaps are built on a regular basis; see the [[administration:automation|Automation]] page for tips on automating VuFind-related tasks.
 +
 +Since the sitemap generation takes some time, it is recommended to generate the sitemap files in a temporary directory and move them in place only when completed. Otherwise the robots may try to crawl incomplete sitemap information while the generation is still in progress. Make sure to clean up any old sitemap files from the temporary directory before generating new ones, and from the public directory when copying them over.
 +
 +3. Include a reference to the sitemap in [[administration:robots.txt|robots.txt]]:
 +
 +:!: This is an incomplete excerpt to illustrate the Sitemap option. The Sitemap URL must be fully-qualified.
 +
 +<code>
 +User-agent: *
 +Disallow: /AJAX
 +
 +Sitemap: http://www.example.com/sitemap.xml
 +</code>
  
 ==== Best Practices ==== ==== Best Practices ====
Line 47: Line 63:
  
 [[administration:robots.txt]] - Recommendations for restricting search engine access to avoid confusing results and/or unnecessary server load. [[administration:robots.txt]] - Recommendations for restricting search engine access to avoid confusing results and/or unnecessary server load.
 +
 +===== Related Video =====
 +
 +You can learn more about sitemaps through the [[videos:sitemaps_and_web_indexing|Sitemaps and Web Indexing]] video.
 ---- struct data ---- ---- struct data ----
 +properties.Page Owner : 
 ---- ----
  
administration/search_engine_optimization.1591283943.txt.gz · Last modified: 2020/06/04 15:19 by demiankatz