Hello every body. I have a problem, i need your answer
Example
My website URL is:

Code:
www.website.com/aaa/bbbb
when i go to link
Code:
www.website.com/aaaccc/bbbb
"aaaccc" is some prefix or suffix of "aaa"

When i go to this link, my website will show 404 error page because it's not found

My question is, how to catch 404 error, and redirect

from

Code:
www.website.com/aaaccc/bbbb
to

Code:
www.website.com/aaa/bbbb