Operating System & Version
CENTOS 7.9 kvm
cPanel & WHM Version
v96.0.11

dipsac

Registered
Jun 27, 2021
2
0
1
US
cPanel Access Level
Reseller Owner

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,923
912
313
cPanel Access Level
Root Administrator
Whoops - I forgot about the /xyz portion.

You won't be able to do that in the cPanel interface, so you'll need to edit the .htaccess file directly. If you add the code to the very bottom of the .htaccess file inside public_html for your domain, I would expect that to work well. This particular version catches both www and non-www versions of the incoming domain:

Code:
RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^(.*)$ "https\:\/\/google\.com\" [R=301,L]