Routes from Chakra UI theme

Hello,

I’m working on a heavily modified Chakra Ui theme and I need to change the route of https://mywebsite.com/author/{-authorName-} and https://mywebsite.com/category/-{categoryName-} but I don’t know where these routes come from.

What I want to do is remove the ‘/author/’ from the URL so I can use https://mywebsite.com/{authorName} instead.

I have tried to use a custom handler to redirect
https://mywebsite.com/{authorName}

to Archive, it works but I don’t have the posts attached to the link like in https://mywebsite.com/author/{authorName}

Is there way I can modify these routes instead of adding another handler ?

Thanks

Also i’ve read in other topic that /author/{authorName} is a wordpress route, but the wp i’m working works when I do mywp.com/{authorName} , but does not when I do mywp.com/author/{authorName}

I’ve changed the archive author url to equivalent in my language on wp settings using a plugin , it works in wp but got 404 on frontity

url looks like this in wp http://mywordpress.com/auteur/john
this works in wp but does not in frontity