Question: The site has 2 languages: English and French, represented by 2 store views. French is the default one. For our SEO efforts we need to have the following urls:

1. French - <http://www.domain.com/category/product>
2. English - <http://www.domain.com/en/category/product>

System -> Configuration -> Web -> Add Store Codes to URL is the all or nothing setting. We just need to turn it off for the default store only.
I’ve done a lot of searching through the forums and wiki but there’s nothing on the subject. 

Please any sugestions?

Answer: 
I had the same problem and I have developed an extension for that.

![enter image description here](https://i.stack.imgur.com/VbO6q.png)

It is available on GitHub: <https://github.com/jreinke/magento-hide-default-store-code>
Under System -> Configuration -> Web -> URL Options you 
change "Add Store Code to Urls" to "NO" as on the attached screenshot
![enter image description here](https://i.stack.imgur.com/PG37W.png)