cPanel Redirect for Domain Only Working on Home Page

Operating System & Version
CENTOS 7.9
cPanel & WHM Version
94.0.4

PostAlmostAnything

Active Member
Mar 3, 2020
33
0
6
Portland, Oregon
cPanel Access Level
Website Owner
I have a domain I don't want to use anymore so I want to redirect it to a different one. To do this I went to domains->manage-> redirects and added a 301 redirect for the root directory to the new domain. Problem is it only works for the home page and not the rest of the the site. How do I redirect every page on the site to the chosen destination?

Example:

example.com
example.com/example.html

should redirect to:
example.com
 

quietFinn

Well-Known Member
Feb 4, 2006
1,273
114
193
Finland
cPanel Access Level
Root Administrator
In cPanel -> Domains -> Redirects you can create Wild Card Redirect.
 
  • Like
Reactions: cPRex