I'm setting up a multilanguage website and I would like to have your help to take the best decision as regard SEO. After reading this.
I would like to change my URLs from this form www.mywebsite.com/page?lang=es to www.mywebsite.com/es/page?lang=es. I need to keep the ?lang=es for other things.
My .htaccess file already contains these things (to remove .php extension of page.php).
RewriteCond %{THE_REQUEST} ^GET\s.+\.php [NC]
RewriteRule ^(.+)\.php$ /$1 [NE,R=301,L,NC]
RewriteCond %{REQUEST_URI} !\.php$ [NC]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule . %{REQUEST_URI}.php [PT]