Skip to content

add store lang in urls

I have two website example.com(store code is usa) and example.ca(store code is default)
both website in English language
This two website working fine, now I want to convert only example.ca to example.com/en-ca

How to do achieve this?
I tried to change default store base secure and unsecure url from store > configuration but css and js, images shows 404 in console at front
or should I look at into class MagentoStoreModelStore?
or should I rewrite code only in.htaccess file?

I am confused please help