how do I fix cpanel hotlink protection .htaccess write error

Asked by:
mike_s / 11 Points
Time:
2012-10-16 3:25 pm EST
Category:
Htaccess
Hits:
1,671
cPanel Hotlink Protection page generates the following error:

Apache detected an error in the Rewrite config. Syntax error on line 2 of /home/djmark5/public_html/.htaccess.iXi2lUhTpNz0hUxbvcXjA4bAM4E3Oy1H: Invalid command 'suphp_configpath', perhaps misspelled or defined by a module not included in the server configuration Please try again.Apache detected an error in the Rewrite config. Syntax error on line 2 of /home/djmark5/public_html/.htaccess.9z3xxiFlmXFZQHASHRzjBfdCEB9FKegP: Invalid command 'suphp_configpath', perhaps misspelled or defined by a module not included in the server configuration Please try again.Apache detected an error in the Rewrite config. Syntax error on line 3 of /home/djmark5/public_html/.htaccess.riDmG9Erv5FFtcXxbCmhcQAEOGUkEph_: Invalid command 'suphp_configpath', perhaps misspelled or defined by a module not included in the server configuration Please try again.Apache detected an error in the Rewrite config. Syntax error on line 3 of /home/djmark5/public_html/.htaccess.StIZIqLn91QlrWAVe_KlrRVxj7RsHXKR: Invalid command 'suphp_configpath', perhaps misspelled or defined by a module not included in the server configuration Please try again.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
13,582 Points
2012-10-16 3:40 pm EST
Hello Mike_s,

I moved the suphp_configpath out of the rewrite block, and hopefully that should take care of the problem. The SuPHP option is now at the very top of the .htaccess file while the rest of the settings for your hotlink protection are together. Let us know if the problem persists!

If you have any further questions, please contact technical support or leave a comment at the bottom of the page.

Regards,

Arnel C.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.