Index: site/App/Cms/Form/SubForm/Meta.php =================================================================== --- site/App/Cms/Form/SubForm/Meta.php (revision 5497) +++ site/App/Cms/Form/SubForm/Meta.php (revision 5498) @@ -293,17 +293,6 @@ } if ($isRedirectFields) { - if ($isSu) { - $this->addElement( - 'select', - 'redirectStatus', - array( - 'label' => 'Redirect Status', - 'value' => 302, - 'multiOptions' => $this->_redirectStatuses, - ) - ); - } $this->addElement( 'select', 'redirectType', @@ -331,6 +320,16 @@ 'description' => 'Example: http://www.adaptainc.com', ) ); + $this->addElement( + 'select', + 'redirectStatus', + array( + 'label' => 'Redirect Status', + 'required' => true, + 'value' => 301, + 'multiOptions' => $this->_redirectStatuses, + ) + ); $this->getElement('redirectType')->getDecorator('label')->setOption('class', 'required'); $this->getElement('redirectPageId')->getDecorator('label')->setOption('class', 'required'); Index: site/Qs/ViewController.php =================================================================== --- site/Qs/ViewController.php (revision 5497) +++ site/Qs/ViewController.php (revision 5498) @@ -1437,7 +1437,7 @@ return implode('', $parts); } - public function redirect($url, $code = 302) + public function redirect($url, $code = 301) { if (is_array($url)) { $url = $this->url($url); Index: .updates/redirect-302-to-301.sql =================================================================== --- .updates/redirect-302-to-301.sql (revision 0) +++ .updates/redirect-302-to-301.sql (revision 5498) @@ -0,0 +1,4 @@ +UPDATE `qs_Page` SET `redirectStatus` = 301 WHERE `redirectStatus` = 302; +UPDATE `qs_DraftPage` SET `redirectStatus` = 301 WHERE `redirectStatus` = 302; +ALTER TABLE `qs_Page` CHANGE `redirectStatus` `redirectStatus` INT( 11 ) NOT NULL DEFAULT '301'; +ALTER TABLE `qs_DraftPage` CHANGE `redirectStatus` `redirectStatus` INT( 11 ) NOT NULL DEFAULT '301';