Hi Salamandre,
Yeah, that's done easily enough. Use variations to the following ruleset:
Source URL: ^/category/([a-z0-9_-]+)/$
Match: URL only
Action: Redirect to URL
Regex: on
Target URL: /categorie/{$1}/
Explanation of the regex:
^/category/([a-z0-9_-]+)/$
^ = start matching at the very start of the URL-path (the domain is cut off automatically already)
/category/ = the old name
() = remember what's between the brackets
[a-z0-9_-]+ = match a phrase which may use any of the characters between a to z, 0 to 9, _ or -. The plus means 1 or more characters needed.
If you want, you can tell it to match for instance a minimum of 4 characters and a maximum of 10 by replacing the + with {4,10}.
/ = character match the end slash
$ = end the URL-path
The phrase which was caught between the () brackets, is re-used in the target URL by using the $1 (= first - in this case also the only - remembered match).
So this regex will match for instance:
http://mysite.com/category/hightech/
http://mysite.com/category/hightech3/
http://mysite.com/category/high-tech/
http://mysite.com/category/high_tech/
But it won't match:
http://mysite.com/tag/category/hightech/ - Url path doesn't start with /category/
http://mysite.com/category/hightech - Url path doesn't end with a slash
http://mysite.com/category/hightech/page1/ - Url path has more info behind the requested match
http://mysite.com/category/high.tech/ - The . is not within the allowed character range
Hope this helps!
Smile,
Juliette