Bug 568528 - redirect and also remove the sentence and the link to the old page
Bug 568528 - redirect membershiType to tab-levels
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
Change-Id: Ib62760429db8977084296fb7bc58d5e2c00b9ac9
diff --git a/become_a_member/membershipTypes.php b/become_a_member/membershipTypes.php
index e6c4486..0dff84c 100644
--- a/become_a_member/membershipTypes.php
+++ b/become_a_member/membershipTypes.php
@@ -11,35 +11,6 @@
* Denis Roy (Eclipse Foundation)
*******************************************************************************/
- require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
- require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
- require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
- $App = new App();
- $Nav = new Nav();
- $Menu = new Menu();
- include($App->getProjectCommon());
-
- # Begin: page-specific settings. Change these.
- $pageTitle = "Types of Membership";
- $pageKeywords = "eclipse,project,plug-ins,plugins,java,ide,swt,refactoring,free java ide,tools,platform,open source,development environment,development,ide";
- $pageAuthor = "Eclipse Foundation, Inc.";
-
- // Custom theme variables
- $variables = array();
- $hide_tips = TRUE;
-
- // Place your html content in a file called content/en_pagename.php
- ob_start();
- include("content/en_" . $App->getScriptName());
- $html = ob_get_clean();
-
- require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/breadcrumbs.class.php");
- $Breadcrumb = new Breadcrumb();
- # remove last crumb since it represents this _projectCommon page.
- $Breadcrumb->removeCrumb($Breadcrumb->getCrumbCount() -1);
- $Breadcrumb->addCrumb("Become a member", "/membership/become_a_member/", "_self");
- $Breadcrumb->addCrumb($pageTitle, NULL, NULL);
-
- # Generate the web page
- $App->generatePage($theme, $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html, $Breadcrumb);
+header('Location: /membership/#tab-levels', TRUE, 301);
+exit;
diff --git a/content/en_index.php b/content/en_index.php
index ee095a3..c281241 100644
--- a/content/en_index.php
+++ b/content/en_index.php
@@ -216,7 +216,6 @@
<li>The opportunity to attend all meetings of the General Assembly</li>
</ul>
<p>Learn more about <a href="/membership/become_a_member/committer.php">Committer membership</a>.</p>
- <p>Learn more about the <a href="/membership/become_a_member/membershipTypes.php#strategic">types of membership</a>.</p>
<!-- Nav -->
<div class="margin-top-40 vertical-align">
<a class="hidden-xs col-sm-6 col-md-8 text-left alt-tab-toggle" href="#tab-benefits" >< Benefits and Services</a>