[mapserver-commits] r10404 - in trunk/docs: . _templates redirection

svn at osgeo.org svn at osgeo.org
Tue Jul 27 16:17:33 EDT 2010


Author: gislars
Date: 2010-07-27 20:17:32 +0000 (Tue, 27 Jul 2010)
New Revision: 10404

Added:
   trunk/docs/redirection/
   trunk/docs/redirection/mapserver-redirect-trunk.conf
Modified:
   trunk/docs/_templates/layout.html
Log:
adjusted path in layout template

Modified: trunk/docs/_templates/layout.html
===================================================================
--- trunk/docs/_templates/layout.html	2010-07-27 17:34:52 UTC (rev 10403)
+++ trunk/docs/_templates/layout.html	2010-07-27 20:17:32 UTC (rev 10404)
@@ -32,7 +32,7 @@
       <a href="{{pathto("../../"+lng+"/"+pagename)}}"><img src="{{ pathto("_static/flagicons/"+lng+".png", 1) }}" alt="{{ lng }}" title="{{ lng }}" border="0" /></a>
       {% endif %}
     {% else %}
-      <a href="{{pathto("../../html/"+lng+"/"+pagename)}}"><img src="{{ pathto("_static/flagicons/"+lng+".png", 1) }}" alt="{{ lng }}" title="{{ lng }}" border="0" /></a>
+      <a href="{{pathto("../"+lng+"/"+pagename)}}"><img src="{{ pathto("_static/flagicons/"+lng+".png", 1) }}" alt="{{ lng }}" title="{{ lng }}" border="0" /></a>
     {% endif %}
   {%- endif %}
   {%- endfor %}
@@ -63,4 +63,4 @@
 <h3><a href="{{ pathto('download') }}" title="Downloads">Downloads</a></h3><br>
 <h3><a href="http://trac.osgeo.org/mapserver/" title="Issue Tracker">Issue Tracker</a></h3><br>
 {{ super() }}
-{% endblock %}
\ No newline at end of file
+{% endblock %}

Added: trunk/docs/redirection/mapserver-redirect-trunk.conf
===================================================================
--- trunk/docs/redirection/mapserver-redirect-trunk.conf	                        (rev 0)
+++ trunk/docs/redirection/mapserver-redirect-trunk.conf	2010-07-27 20:17:32 UTC (rev 10404)
@@ -0,0 +1,18 @@
+
+RewriteEngine On
+RewriteBase /html
+
+#RewriteRule ^$			 trunk/en/	[R=301,L]
+#RewriteRule ^([^/]{3,})		 en/$1   [R=301,L]
+#RewriteRule ^de/_static/(.*)   en/_static/$1 [PT]
+
+# mod_expires stuff
+ExpiresByType image/* "modification plus 12 hours"
+ExpiresByType application/javascript "modification plus 12 hours"
+ExpiresByType application/x-javascript "modification plus 12 hours"
+ExpiresByType text/html "modification plus 1 hours"
+
+# deflate html and javascript
+AddOutputFilterByType DEFLATE text/html
+AddOutputFilterByType DEFLATE application/javascript
+AddOutputFilterByType DEFLATE application/x-javascript



More information about the mapserver-commits mailing list