Assistance Required with Redirecting URLs Using .htaccess on OpenLiteSpeed Server via CyberPanel 2.3.9

Dear CyberPanel Support Team,

I hope this message finds you well.

I am currently managing a website hosted on a server using OpenLiteSpeed with CyberPanel 2.3.9. I have been trying to set up URL redirections using the .htaccess file, but unfortunately, I have not been able to achieve the desired result despite following various instructions.

Here is the issue I am facing:

  • I need to redirect the following URL:
    https://www.domain.com/category-product/materiel-informatique/moniteur/
    to:
    https://www.domain.com/category-product/composants-pc/

I have edited the .htaccess file located in the root directory of my website, adding the necessary redirection rule, but it seems the redirection is not working as expected.

Could you please guide me through the correct steps to set up this redirect on my server? If there is a specific configuration or setting I may have missed, I would greatly appreciate your assistance in resolving this issue.