What are the potential pitfalls of using switch/case navigation in PHP for SEO optimization?

Using switch/case navigation in PHP for SEO optimization can lead to potential pitfalls such as creating duplicate content, confusing search engine crawlers, and impacting the overall website ranking. To solve this issue, it's recommended to use clean and user-friendly URLs that are easily understandable by both users and search engines.

// Implementing clean and user-friendly URLs in PHP
$request_uri = $_SERVER['REQUEST_URI'];

switch ($request_uri) {
    case '/about':
        include 'about.php';
        break;
    case '/contact':
        include 'contact.php';
        break;
    default:
        include '404.php';
}