diff --git a/doc/gmsh.html b/doc/gmsh.html
index e159f67d8cc478494c16449554b393b5776391e0..48ee0079dde46139c066e628f693aeefc7afe714 100644
--- a/doc/gmsh.html
+++ b/doc/gmsh.html
@@ -53,33 +53,33 @@ input to these modules is done either interactively using the
 graphical user interface or in ASCII text files using Gmsh's own
 scripting language.
 <p>
-See the screencasts for a <a href="/gmsh/screencasts/">quick tour of
+See the screencasts for a <a href="screencasts/">quick tour of
 Gmsh's graphical user interface</a>, or the reference manual for a
-more thorough <a href="/gmsh/doc/texinfo/gmsh.html#Overview">overview
+more thorough <a href="doc/texinfo/gmsh.html#Overview">overview
 of Gmsh's capabilities</a> and some
-<a href="/gmsh/doc/texinfo/gmsh.html#Frequently-asked-questions">frequently
+<a href="doc/texinfo/gmsh.html#Frequently-asked-questions">frequently
 asked questions</a>.
 
 <h2><a name="Download"></a>Download</h2>
 
 Gmsh is distributed under the terms of
-the <a href="/gmsh/doc/LICENSE.txt">GNU General Public License
+the <a href="doc/LICENSE.txt">GNU General Public License
 (GPL)</a>:
 <ul>
   <li>
     <p class="highlight">
       <strong>Current stable release</strong>: Windows
-      <a href="/gmsh/bin/Windows/gmsh-2.7.0-Windows.zip"><strong>32 bit</strong></a> /
-      <a href="/gmsh/bin/Windows/gmsh-2.7.0-Windows64.zip"><strong>64 bit</strong></a>,
+      <a href="bin/Windows/gmsh-2.7.0-Windows.zip"><strong>32 bit</strong></a> /
+      <a href="bin/Windows/gmsh-2.7.0-Windows64.zip"><strong>64 bit</strong></a>,
       Linux
-      <a href="/gmsh/bin/Linux/gmsh-2.7.0-Linux.tgz"><strong>32 bit</strong></a> /
-      <a href="/gmsh/bin/Linux/gmsh-2.7.0-Linux64.tgz"><strong>64 bit</strong></a>,
-      <a href="/gmsh/bin/MacOSX/gmsh-2.7.0-MacOSX.dmg"><strong>Mac OS X</strong></a>
+      <a href="bin/Linux/gmsh-2.7.0-Linux.tgz"><strong>32 bit</strong></a> /
+      <a href="bin/Linux/gmsh-2.7.0-Linux64.tgz"><strong>64 bit</strong></a>,
+      <a href="bin/MacOSX/gmsh-2.7.0-MacOSX.dmg"><strong>Mac OS X</strong></a>
       and
-      <a href="/gmsh/src/gmsh-2.7.0-source.tgz"><strong>source code</strong></a>
+      <a href="src/gmsh-2.7.0-source.tgz"><strong>source code</strong></a>
     </p>
     <p>
-      <em>A <a href="/gmsh/doc/texinfo/gmsh.html#Tutorial"><strong>tutorial</strong></a>
+      <em>A <a href="doc/texinfo/gmsh.html#Tutorial"><strong>tutorial</strong></a>
         introducing all key features and concepts is included in all the
         versions in the <code>tutorial</code> directory. <br>Make sure to read
         these examples before sending questions or bug reports!</em>
@@ -87,25 +87,25 @@ the <a href="/gmsh/doc/LICENSE.txt">GNU General Public License
     <ul><li>automated nightly builds
         (<a href="http://onelab.info/CDash/index.php?project=Gmsh">dashboard</a>):
         Windows 
-        <a href="/gmsh/bin/Windows/gmsh-svn-Windows.zip">32 bit</a> /
-        <a href="/gmsh/bin/Windows/gmsh-svn-Windows64.zip">64 bit</a>,
+        <a href="bin/Windows/gmsh-svn-Windows.zip">32 bit</a> /
+        <a href="bin/Windows/gmsh-svn-Windows64.zip">64 bit</a>,
         Linux
-        <a href="/gmsh/bin/Linux/gmsh-svn-Linux.tgz">32 bit</a> /
-        <a href="/gmsh/bin/Linux/gmsh-svn-Linux64.tgz">64 bit</a>
+        <a href="bin/Linux/gmsh-svn-Linux.tgz">32 bit</a> /
+        <a href="bin/Linux/gmsh-svn-Linux64.tgz">64 bit</a>
         and
-        <a href="/gmsh/bin/MacOSX/gmsh-svn-MacOSX.dmg">Mac OS X</a>
-      <li>nightly <a href="/gmsh/src/gmsh-svn-source.tgz">source
+        <a href="bin/MacOSX/gmsh-svn-MacOSX.dmg">Mac OS X</a>
+      <li>nightly <a href="src/gmsh-svn-source.tgz">source
           snapshot</a>
       <li>read-only svn access: '<code>svn co 
           <a href="https://geuz.org/svn/gmsh/trunk">https://geuz.org/svn/gmsh/trunk</a>
           gmsh</code>' (username: gmsh, password: gmsh)
     </ul>
-  <li>Browse all versions: <a href="/gmsh/bin/">binaries</a>
-    and <a href="/gmsh/src/">sources</a>
+  <li>Browse all versions: <a href="bin/">binaries</a>
+    and <a href="src/">sources</a>
 </ul>
 
 If you use Gmsh please cite the following reference in your work (books,
-articles, reports, etc.): <a href="preprints/gmsh_paper_preprint.pdf">C. Geuzaine and
+articles, reports, etc.): <a href="doc/preprints/gmsh_paper_preprint.pdf">C. Geuzaine and
 J.-F. Remacle. <em>Gmsh: a three-dimensional finite element mesh generator with
 built-in pre- and post-processing facilities</em>. International Journal for
 Numerical Methods in Engineering 79(11), pp. 1309-1331, 2009</a>''. You can also
@@ -116,7 +116,7 @@ algorithms</a>.
 
 Gmsh is developed by <a href="http://www.montefiore.ulg.ac.be/~geuzaine">Christophe
 Geuzaine</a> and <a href="http://perso.uclouvain.be/jean-francois.remacle">Jean-François
-Remacle</a>. The <a href="/gmsh/doc/CREDITS.txt">CREDITS</a> file has
+Remacle</a>. The <a href="doc/CREDITS.txt">CREDITS</a> file has
 more information.
 <p>
 Please use the public mailing list <a HREF="mailto:gmsh@geuz.org">gmsh@geuz.org</a>
@@ -128,17 +128,17 @@ gmsh, password: gmsh).
 <h2><a name="Documentation"></a>Documentation</h2>
 
 <ul>
-  <li><a href="/gmsh/doc/texinfo/gmsh.html">Reference manual</a> 
+  <li><a href="doc/texinfo/gmsh.html">Reference manual</a> 
       (also available in
-      <a href="/gmsh/doc/texinfo/gmsh.pdf">PDF</a> or in
-      <a href="/gmsh/doc/texinfo/gmsh.txt">plain text</a>)
-  <li><a href="/gmsh/screencasts/">Screencasts</a> showing how to use
+      <a href="doc/texinfo/gmsh.pdf">PDF</a> or in
+      <a href="doc/texinfo/gmsh.txt">plain text</a>)
+  <li><a href="screencasts/">Screencasts</a> showing how to use
     the graphical user interface
   <li><a href="https://geuz.org/trac/gmsh">Wiki</a> with examples, a
     <a href="https://geuz.org/trac/gmsh/timeline">time line</a> of
     changes and the <a href="https://geuz.org/trac/gmsh/report/3">bug
     tracking</a> database (username: gmsh, password: gmsh)
-  <li><a href="/gmsh/doc/VERSIONS.txt">Version history</a>
+  <li><a href="doc/VERSIONS.txt">Version history</a>
   <li>Mailing lists:
     <ul>
       <li><a href="/mailman/listinfo/gmsh/">gmsh</a>
@@ -168,7 +168,7 @@ gmsh, password: gmsh).
 
 Gmsh is copyright (C) 1997-2012 by C. Geuzaine and J.-F. Remacle and
 is distributed under the terms of
-the <a href="/gmsh/doc/LICENSE.txt">GNU General Public License
+the <a href="doc/LICENSE.txt">GNU General Public License
 (GPL)</a> (Version 2 or later, with an exception to allow for easier
 linking with external libraries).
 <p>
@@ -187,60 +187,59 @@ information.
 
 <h2><a name="Screenshots"></a>Screenshots</h2>
 
-<a href="http://geuz.org/gmsh/gallery/screenshot.png"><img
-src="http://geuz.org/gmsh/gallery/thumbnail.png" alt="Screenshot
-thumbnail"></a>
+<a href="gallery/screenshot.png"><img src="gallery/thumbnail.png"
+alt="Screenshot thumbnail"></a>
 
 <ul>
 <li>Sample STEP/BREP models:
-    <a href="/gmsh/gallery/bike.png">bike</a>,
-    <a href="/gmsh/gallery/Zylkopf3D.png">zylkopf</a>,
-    <a href="/gmsh/gallery/TapGeo.png">tap</a>,
-    <a href="/gmsh/gallery/linkrods3Db.png">linkrods</a>,
-    <a href="/gmsh/gallery/Block3D.png">block</a>,
-    <a href="/gmsh/gallery/hammer.png">hammer</a>,
-    <a href="/gmsh/gallery/propeller.png">propeller</a>,
-    <a href="/gmsh/gallery/piston.png">piston</a>,
-    <a href="/gmsh/gallery/pump.png">pump</a> (EDF R&amp;D).
+    <a href="gallery/bike.png">bike</a>,
+    <a href="gallery/Zylkopf3D.png">zylkopf</a>,
+    <a href="gallery/TapGeo.png">tap</a>,
+    <a href="gallery/linkrods3Db.png">linkrods</a>,
+    <a href="gallery/Block3D.png">block</a>,
+    <a href="gallery/hammer.png">hammer</a>,
+    <a href="gallery/propeller.png">propeller</a>,
+    <a href="gallery/piston.png">piston</a>,
+    <a href="gallery/pump.png">pump</a> (EDF R&amp;D).
 <li>Native models: 
-    <a href="/gmsh/gallery/MURUROA.png">ocean</a> (here is
+    <a href="gallery/MURUROA.png">ocean</a> (here is
     a <a href="http://perso.uclouvain.be/jonathan.lambrechts/gmsh_ocean">screencast</a>
     explaining how to create such a mesh),
-    <a href="/gmsh/gallery/violin.png">violin</a> (S. Hardesty)
-    <a href="/gmsh/gallery/magnetron3.gif">magnetron 1</a>,
-    <a href="/gmsh/gallery/magnetron4.gif">magnetron 2</a> (P. Lefèvre),
-    <a href="/gmsh/gallery/breaker.gif">circuit breaker</a> (S. K. Choi),
-    <a href="/gmsh/gallery/machine.gif">electrical machine</a> (J. Gyselinck),
-    <a href="/gmsh/gallery/tresse1.gif">braid 1</a>,
-    <a href="/gmsh/gallery/tresse2.gif">braid 2</a> (D. Colignon).
+    <a href="gallery/violin.png">violin</a> (S. Hardesty)
+    <a href="gallery/magnetron3.gif">magnetron 1</a>,
+    <a href="gallery/magnetron4.gif">magnetron 2</a> (P. Lefèvre),
+    <a href="gallery/breaker.gif">circuit breaker</a> (S. K. Choi),
+    <a href="gallery/machine.gif">electrical machine</a> (J. Gyselinck),
+    <a href="gallery/tresse1.gif">braid 1</a>,
+    <a href="gallery/tresse2.gif">braid 2</a> (D. Colignon).
 <li>Mesh around an airplane:
-    <a href="/gmsh/gallery/a319_4.png">A319 1</a>,
-    <a href="/gmsh/gallery/a319_2.png">A319 2</a>.
+    <a href="gallery/a319_4.png">A319 1</a>,
+    <a href="gallery/a319_2.png">A319 2</a>.
 <li>Structured vs. unstructured grids:
-    <a href="/gmsh/gallery/spirale.gif">spirale</a>,
-    <a href="/gmsh/gallery/piece1.gif">unstructured</a>, 
-    <a href="/gmsh/gallery/piece2.gif">structured tet</a>, 
-    <a href="/gmsh/gallery/piece3.gif">structured hex/pri</a>.
+    <a href="gallery/spirale.gif">spirale</a>,
+    <a href="gallery/piece1.gif">unstructured</a>, 
+    <a href="gallery/piece2.gif">structured tet</a>, 
+    <a href="gallery/piece3.gif">structured hex/pri</a>.
 <li>Post-processing:
-    <a href="/gmsh/gallery/hugo.png">Isosurfaces and vector fields</a>,
-    <a href="/gmsh/gallery/sebastian_lehmann.divx">Streamlines</a> (S. Lehmann),
-    <a href="/gmsh/gallery/f16_stream.jpg">F16 streamlines</a>,
-    <a href="/gmsh/gallery/f18_stream.jpg">F18 streamlines</a>,
-    <a href="/gmsh/gallery/pressure-ring.png">pressure ring</a>,
-    <a href="/gmsh/gallery/boeing.jpg">Boing</a> (P. Geuzaine),
-    <a href="/gmsh/gallery/blob.gif">post-pro</a>,
-    <a href="/gmsh/gallery/contact.png">post-pro 2</a>,
-    <a href="/gmsh/gallery/cmap.png">colormaps</a>.
+    <a href="gallery/hugo.png">Isosurfaces and vector fields</a>,
+    <a href="gallery/sebastian_lehmann.divx">Streamlines</a> (S. Lehmann),
+    <a href="gallery/f16_stream.jpg">F16 streamlines</a>,
+    <a href="gallery/f18_stream.jpg">F18 streamlines</a>,
+    <a href="gallery/pressure-ring.png">pressure ring</a>,
+    <a href="gallery/boeing.jpg">Boing</a> (P. Geuzaine),
+    <a href="gallery/blob.gif">post-pro</a>,
+    <a href="gallery/contact.png">post-pro 2</a>,
+    <a href="gallery/cmap.png">colormaps</a>.
 <li>Miscellaneous features:
-    <a href="/gmsh/gallery/lenna.gif">Lenna as background mesh</a>,
-    <a href="/gmsh/gallery/spiranim.gif">animated cutting spiral</a>,
-    <a href="/gmsh/gallery/select.png">selection</a>,
-    <a href="/gmsh/gallery/runner.png">clipping</a>.
+    <a href="gallery/lenna.gif">Lenna as background mesh</a>,
+    <a href="gallery/spiranim.gif">animated cutting spiral</a>,
+    <a href="gallery/select.png">selection</a>,
+    <a href="gallery/runner.png">clipping</a>.
 <li>Various screen captures:
-    <a href="/gmsh/gallery/screenshot1.gif">magnetron</a>,
-    <a href="/gmsh/gallery/screenshot2.gif">F16</a>,
-    <a href="/gmsh/gallery/screenshot3.gif">electrical machine</a>,
-    <a href="/gmsh/gallery/screenshot4.gif">neutron scattering</a>.
+    <a href="gallery/screenshot1.gif">magnetron</a>,
+    <a href="gallery/screenshot2.gif">F16</a>,
+    <a href="gallery/screenshot3.gif">electrical machine</a>,
+    <a href="gallery/screenshot4.gif">neutron scattering</a>.
 </ul>
 
 <h2><a name="Links"></a>Links</h2>
@@ -272,7 +271,7 @@ thumbnail"></a>
       element mesh generator with built-in pre- and post-processing
       facilities</em>. International Journal for Numerical Methods in
       Engineering 79(11), pp. 1309-1331,
-      2009. (<a href="preprints/gmsh_paper_preprint.pdf">PDF</a>)
+      2009. (<a href="doc/preprints/gmsh_paper_preprint.pdf">PDF</a>)
     </li>
   </ul>
   Cross-patch and STL meshing (Compounds)
@@ -280,15 +279,15 @@ thumbnail"></a>
     <li>J.-F. Remacle, C. Geuzaine, G. Compère and
       E. Marchandise. <em>High-Quality Surface Remeshing Using Harmonic
       Maps</em>.  International Journal for Numerical Methods in Engineering
-      83(4), pp. 403-425, 2010. (<a href="preprints/gmsh_stl_preprint.pdf">PDF</a>)
+      83(4), pp. 403-425, 2010. (<a href="doc/preprints/gmsh_stl_preprint.pdf">PDF</a>)
     <li>E. Marchandise, C. Carton de Wiart, W. G. Vos, C. Geuzaine and
       J.-F. Remacle.  <em>High Quality Surface Remeshing Using Harmonic
       Maps. Part II: Surfaces with High Genus and of Large Aspect Ratio</em>.
       International Journal for Numerical Methods in Engineering 86(11),
-      pp. 1303-1321, 2011. (<a href="preprints/gmsh_stl2_preprint.pdf">PDF</a>)
+      pp. 1303-1321, 2011. (<a href="doc/preprints/gmsh_stl2_preprint.pdf">PDF</a>)
     <li>E. Marchandise, J.-F. Remacle and C. Geuzaine. <em>Optimal
       parametrizations for surface remeshing</em>. Engineering with Computers,
-      in press, 2012. (<a href="preprints/gmsh_stl3_preprint.pdf">PDF</a>)
+      in press, 2012. (<a href="doc/preprints/gmsh_stl3_preprint.pdf">PDF</a>)
   </ul>
   Quad meshing (Blossom and DelQuad)
   <ul class="small">
@@ -297,35 +296,36 @@ thumbnail"></a>
       C. Geuzaine. <em>Blossom-Quad: a non-uniform quadrilateral mesh generator
       using a minimum cost perfect matching algorithm</em>.  International
       Journal for Numerical Methods in Engineering 89, pp. 1102-1119,
-      2012. (<a href="preprints/gmsh_quad_preprint.pdf">PDF</a>)
+      2012. (<a href="doc/preprints/gmsh_quad_preprint.pdf">PDF</a>)
     <li>J.-F. Remacle, F. Henrotte, T. Carrier-Baudouin, E. Béchet,
       E. Marchandise, C. Geuzaine and T. Mouton. <em>A frontal Delaunay Quad
       Mesh Generator Using the L&infin; Norm</em>.  International Journal for
       Numerical Methods in Engineering, in press, 2012.
-      (<a href="preprints/gmsh_quad2_preprint.pdf">PDF</a>)
+      (<a href="doc/preprints/gmsh_quad2_preprint.pdf">PDF</a>)
   </ul>
   High-order meshing
   <ul class="small">
     <li>A. Johnen, J.-F. Remacle and C. Geuzaine. <em>Geometric validity of
       High-Order Triangular Finite Elements</em>. Engineering with Computers, in
-      press, 2012. (<a href="preprints/gmsh_curved2_preprint.pdf">PDF</a>)
+      press, 2012. (<a href="doc/preprints/gmsh_curved2_preprint.pdf">PDF</a>)
     <li>A. Johnen, J.-F. Remacle and C. Geuzaine. <em>Geometric validity of
         Curvilinear Finite elements</em>. Journal of Computational Physics, in
-      press, 2012. (<a href="preprints/gmsh_curved_preprint.pdf">PDF</a>)
+      press, 2012. (<a href="doc/preprints/gmsh_curved_preprint.pdf">PDF</a>)
   </ul>
   High-order visualization
   <ul class="small">
     <li>J.-F. Remacle, N. Chevaugeon, E. Marchandise and
       C. Geuzaine. <em>Efficient Visualization of High-Order Finite
       Elements</em>. International Journal for Numerical Methods in Engineering
-      69(4), pp. 750-771, 2007. (<a href="preprints/gmsh_visu_preprint.pdf">PDF</a>)
+      69(4), pp. 750-771, 2007. (<a href="doc/preprints/gmsh_visu_preprint.pdf">PDF</a>)
   </ul>
 <!--
   Ocean meshing
   <ul class="small">
     <li>J. Lambrechts, R. Comblen, V. Legat, C. Geuzaine and
       J.-F. Remacle. <em>Multiscale mesh generation on the sphere</em>. Ocean
-      Dynamics, 58, pp. 461-473, 2008. (<a href="preprints/gmsh_ocean_preprint.pdf">PDF</a>)
+      Dynamics, 58, pp. 461-473, 2008. 
+      (<a href="doc/preprints/gmsh_ocean_preprint.pdf">PDF</a>)
   </ul>
   Biomedical meshing
   <ul class="small">
@@ -333,17 +333,17 @@ thumbnail"></a>
       J-F Remacle. <em>Quality meshing based on STL triangulations for
       biomedical simulations</em>. International Journal for Numerical Methods
       in Biomedical Engineering 26(7), pp. 876-889,
-      2010. (<a href="preprints/gmsh_bio_preprint.pdf">PDF</a>)
+      2010. (<a href="doc/preprints/gmsh_bio_preprint.pdf">PDF</a>)
     <li>E. Marchandise, P. Crosetto, C. Geuzaine, J.-F. Remacle and
       E. Sauvage. <em>Quality open source mesh generation for cardiovascular
       flow simulations</em>, in Modelling Physiological Flow, Springer Series on
       Modeling, Simulation and Applications (Editors: D. Ambrosi, A. Quarteroni,
       G. Rozza). Springer-Verlag, Berlin Heidelberg, 2011.
-      (<a href="preprints/gmsh_bio2_preprint.pdf">PDF</a>)
+      (<a href="doc/preprints/gmsh_bio2_preprint.pdf">PDF</a>)
     <li>E. Marchandise, C. Geuzaine and J.-F. Remacle. <em>Cardiovascular and
       lung mesh generation based on centerlines</em>. International Journal for
       Numerical Methods in Biomedical Engineering, submitted,
-      2012. (<a href="preprints/gmsh_bio3_preprint.pdf">PDF</a>)
+      2012. (<a href="doc/preprints/gmsh_bio3_preprint.pdf">PDF</a>)
   </ul>
 -->
 </div>