<?php
// Method 1: Using PHP header() redirect
if ($_SERVER['REQUEST_URI'] === '/careers'|| $_SERVER['REQUEST_URI'] === '/careers/') { // 
    header('Location: /company/careers/', true, 301); // 301 Permanent Redirect
    exit();
}

// Method 2: Alternative using .htaccess (Apache)
// In .htaccess file:
// RewriteEngine On
// RewriteRule ^news/?$ /all-news/ [R=301,L]

// Method 3: Nginx configuration
// location ~ ^/news/?$ {
//     return 301 /all-news/;
// }
