You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2014/11/12 22:06:53 UTC

svn commit: r1639057 - /lucene/cms/trunk/content/.htaccess

Author: hossman
Date: Wed Nov 12 21:06:52 2014
New Revision: 1639057

URL: http://svn.apache.org/r1639057
Log:
SOLR-6058: some RewriteRules that should hopefully catch the urls that no longer exist and send them someplace useful

Modified:
    lucene/cms/trunk/content/.htaccess

Modified: lucene/cms/trunk/content/.htaccess
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/.htaccess?rev=1639057&r1=1639056&r2=1639057&view=diff
==============================================================================
--- lucene/cms/trunk/content/.htaccess (original)
+++ lucene/cms/trunk/content/.htaccess Wed Nov 12 21:06:52 2014
@@ -11,10 +11,23 @@ RedirectMatch Permanent /java/docs/irc.h
 RedirectMatch Permanent /java/docs/mailinglists.html /core/discussion.html
 RedirectMatch Permanent /java/docs/systemrequirements.html /core/systemreqs.html
 RedirectMatch Permanent /java/docs/developer-resources.html /core/developer.html
-RedirectMatch Permanent /solr/version_control.html /solr/versioncontrol.html
-RedirectMatch Permanent /solr/mailing_lists.html /solr/discussion.html
 RedirectMatch Permanent /solr/issue_tracking.html https://issues.apache.org/jira/browse/SOLR
 
+# Solr site redesign
+# needs to use mod_rewrite because of the anchor fragments
+RewriteEngine on
+RewriteBase /
+RewriteRule solr/books.html solr/resources.html#solr-books                      [R=301,NE]
+RewriteRule solr/discussion.html solr/resources.html#community                  [R=301,NE]
+RewriteRule solr/documentation.html solr/resources.html#documentation           [R=301,NE]
+RewriteRule solr/screenshots.html solr/features.html                            [R=301,NE]
+RewriteRule solr/solrnews.html solr/news.html                                   [R=301,NE]
+RewriteRule solr/tutorial.html solr/resources.html#tutorials                    [R=301,NE]
+RewriteRule solr/versioncontrol.html solr/resources.html#solr-version-control   [R=301,NE]
+RewriteRule solr/version_control.html solr/resources.html#solr-version-control  [R=301,NE]
+RewriteRule solr/mailing_lists.html solr/resources.html#community               [R=301,NE]
+
+
 # Simple redirect to "directory", so later rules match
 RedirectMatch temp /core/api$ /core/api/
 RedirectMatch temp /solr/api$ /solr/api/