Htaccess handling

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.

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

To avoid further problems, don't open this .htaccess in cPanel anymore.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Apache Error Logs

When you check the error logs, you can see many things. Some things you can ignore: File does...

Accessing Web Disk

Web disk (also known as Web Dav) is a drag-and-drop interface which allows you to access your...

Apache Handlers (running html as php)

Apache handlers allow you to control what Apache will do with certain file types. When Apache...

Backup File Types

So, you have a backup file, but you need to know what type of backup it is so you can know what...

Copy Entire Database or Rename Database

Is there a way for me to copy an entire database in cPanel from another server? You will need...