Hosting Question? Find the Solution -

KNOWNHOST KNOWLEDGE BASE

Browse our Guides, Articles, and How-To's

How to modify the .htaccess file?

Category: Guides
Tags: # # # #

The .htacceess files provide the way to perform the configuration on a per-directory basis. In this article, we will cover how to modify the .htaccess files on cPanel, DirectAdmin, and using SSH. Let’s get started! Using cPanel 1. Log in to cPanel using Username & Password. i.e; (https://yourdomain.com:2083 or https://yourdomain.com/cpanel) 2. Navigate and open Files → File Manager. 3.  Navigate to public_html. […]

Confirming Mod_Expires is Installed To be able to use the Expires header, mod_expires must be enabled in your Apache configuration. You can confirm this on CentOS using the following command, This module controls the Expires HTTP header settings and the Cache-Control HTTP header max-age directives. This should be installed by default on most servers. Testing […]

Requirements: This requires the mod_rewrite module in apache. This is enabled by default on all KnownHost systems. .htaccess files can be used in a website’s document root directory (ex. /home/user/public_html/) for redirecting web site visitors from one document within your web site to another. .htaccess rules are recursive meaning that rules written in /home/user/public_html/.htaccess will apply […]

If you receive the following error, you’ve edited your file with software that has added a BOM magic numbers to the file, which Apache cannot read: ‘\xef\xbb\xbf#’ is a ‘Unicode BOM(Byte Order Mark)’ and consists of invisible characters added by certain text editors like Notepad++, for instance. The BOM often functions as a magic number […]

Sendy Installation Mod_Rewrite Error You may be getting a warning regarding the Apache module mod_rewrite not enabled when preparing to setup Sendy installation. Mod_Rewrite is enabled on Knownhost servers by default. You can check as root via SSH using the following command: You can also confirm this by adding a redirect to google.com in your […]