Allowing optional prefix in url

I am using wordpress and I have the following URL

http://www.example.com/product/sony-xperia/

What I am trying to achieve is if I add fr after the base url like the example below, I want to display the same content as I can see for the url above.

http://www.example.com/fr/product/sony-xperia/

Could you please tell me how to achieve this?

Read more here: Allowing optional prefix in url

Leave a Reply

Your email address will not be published. Required fields are marked *