301 Redirect Calculator
Redirect Type:
301 Permanent Redirect
# .htaccess Redirect
Redirect 301 /old-page /new-page
# Nginx Redirect
location /old-page {
return 301 /new-page;
}
// WordPress Redirect (functions.php)
add_action('template_redirect', 'custom_301_redirect');
function custom_301_redirect() {
if (is_page('old-page')) {
wp_redirect(get_permalink(get_page_by_path('new-page')), 301);
exit;
}
}
Note: Always test redirects in a staging environment first