Adding Alias or Addon Domain Redirects Returns Error

Matt Paplham

Member
Apr 12, 2019
11
3
3
WI - USA
cPanel Access Level
Root Administrator
Hello,

We are receiving an error when trying to add a redirect to an alias or addon domain. The specific error is:

Code:
AH00526: Syntax error on line 423 of /path/to/.htaccess:
Invalid command 'Trusted', perhaps misspelled or defined by a module not included in the server configuration
We are using LiteSpeed Web Server and were having problems getting our IP blocked from their Brute Force Protection. For some reason the counter also increments on successful logins. Per Litespeed's WordPress Brute Force Attack Protection wiki:

Set "Trusted <ip>" in .htaccess to bypass the block
Since LSWS 5.4RC1, LSWS added virtual host trusted IP support, where you use Trusted 1.2.3.4, 5.6.7.8 for IPv4 or Trusted [2001:db8:85a3:8d3:1319:8a2e:370:7348] for IPv6 in Virtual Host document root .htaccess to unblock blocked IP and make that IP trusted for that vhost.

The work around is to remove Trusted from the .htaccess, add the redirects, then add Trusted back to the .htaccess. However, would save some time if cPanel didn't throw an error. Any suggestions?

Thanks!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
hey. I am working on <domain removed> event site. I am facing this apache error. what to do now?
I'd suggest posting the specific error you're seeing first. If its the identical error - you'd need to check whats on that line in the .htaccess file.
 

Matt Paplham

Member
Apr 12, 2019
11
3
3
WI - USA
cPanel Access Level
Root Administrator
Hi Lauren - Thanks for your help. I see the error when trying to add a redirect from the "Alias" or "Addon Domains" interface in cPanel.

Additionally, manually adding the redirect code (or anything else) to the .htaccess file doesn't give an error.
 
Last edited:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi lauren thanks i think there is a problem or your c panel or something like that may be try to check .htaccess file
Can you clarify this? I don't understand what you're trying to say here.