force Apache to ignore bad rewrite code

mahdy_sharifi

Well-Known Member
Feb 26, 2012
218
1
68
cPanel Access Level
Root Administrator
Hello :

when I switch from litespeed to Apache many site of our customer face to Error , this error due bad rewrite code like :

[Sat Jul 06 02:53:44 2013] [alert] [client 151.245.75.81] /home/pixir98/public_html/.htaccess: Invalid command 'global', perhaps misspelled or defined by a module not
included in the server configuration, referer: Redirect Notice
ei=YkfXUfCPO4jbOrGXgcAC&usg=AFQjCNHkXvmF-AP59luMzh-aZuFcgN2qlw&bvm=bv.48705608,d.ZWU

we haven't any issue with these site on LS , Is it possible force Apache to ignore bad rewrite code ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Could you provide us with an example of the line(s) in the .htaccess file that are resulting in this error message?

Thank you.