Comment to 'Change URI everywhere?'
  • Looks like using .htaccess rewrite is the best option.

        RewriteEngine on
        # Rewrite /profile/[anything] to /view-persons-profile/[anything] internally
        RewriteRule ^profile/(.*)$ /view-persons-profile/$1 [L,QSA]
    
    
        # Ensure that requests to /view-persons-profile/[anything] are only accessible via /profile/[anything]
        RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/view-persons-profile/[^\s]* [NC]
        RewriteRule ^view-persons-profile/(.*)$ /profile/$1 [R=301,L]