Set your store url to have code System > Config > Web > Add Store Code to URLs
And make sure you add your desired store code
Follow these steps:
Go to System > Manage Store
and edit each store then add your code in code
section.
Then add all old url to redirect to new url by editing directly from database.
The table that is responsible for rewrite is core_url_rewrite
.
In that table you will be focusing on these columns
- store_id
- request_path
Store id is the id for your store. So you want to find out what is the id for en
and de
.
Now, export core_url_rewrite
in csv format and make backup of this file then edit request
path sections and put your all old url in target path section
as desired.
I am sure you can differentiate your request path by looking at their store_id
.
After complete edit of that file, upload your csv
file into that. You should update url_rewirte_id
as well, since they are set to auto increment
. Your first url_rewrite_id
should be greater than last entry on that table and should be in increment basis.