Editing .htaccess from cPanel causing website errors?

October 27th, 2009

Sometimes when you edit the .htaccess file in cPanel, the lines must wrap and this causes a line break.

The line break is a common reason for site errors.

1. To fix this, open a text editor (like Notepad) and paste your .htaccess code. Be sure that Word Wrap is off (under Format).
2. Save the file as htaccess.txt
3. Upload this new file to the proper directory.
4. Rename the current .htaccess to htaccess-old.txt
5. Rename htaccess.txt to .htaccess

To avoid further problems, don’t edit .htaccess in cPanel anymore use FTP instead.

SocialTwist Tell-a-Friend

Leave A Comment