I have a multi-language WordPress website where the URL has the following URL structure:
http://www.domain.com/yyyy/mm/dd/abcdefg/xx-yy/
where xx-yy is the language code.
I intend to make the URL as below:
http://www.domain.com/xx-yy/yyyy/mm/dd/abcdefg/
Where the language code in URL has been moved to the front.
Anybody has any idea what mod-rewrite code which i can used in .htaccess to automatically redirect from the old URL to new URL?
Thanks a lot for any help.
Add this rule to make that work:
This will redirect:
http://www.domain.com/2011/04/07/abcdefg/xx-yy/
tohttp://www.domain.com/xx-yy/2011/04/07/abcdefg/