Hi Again,
I hosted a domain for redirecting users to a different domain. The redirect has a htaccess, config.php and index.php, which works together to redirect users to a different domain , but instead of redirecting them to the external domain I included in the config.php its giving me a 404 error

I tried the same script on a cpanel and its working fine, but in aapanel its giving me a 404 error.
how do I fix please ?

Hello, 404 usually means file not found, or the rewritten configuration is not configured properly?