$this->redirect causing 200 OK on live

My redirects work perfectly fine on the local host, but on live, all of them are producing the following error:

Here are some error logs of me calling the controller actions containing the redirects.

Thanks for your insights. This is urgent.

Using php’s native header(Location:…) also produces the same error. Any ideas?

Someone advised me that it may be because the syntax in my htccess is incorrect:

But I don’t know the proper syntax.

So what happens when you load the url directly?

Hey thanks for the response. I figured out the problem. My .htaccess syntax was incorrect.