How to Sync an Htaccess File to the Web Server

Posted by on June 05 2013 12:56 PM

An .htaccess file contains instructions that tell the Linux web server how to behave in certain scenarios. Your website can have multiple .htaccess files within separate folders, or a single .htaccess file within your site's root folder. The .htaccess directly affects how your website functions on the server. It is possible that you may need to edit the .htaccess file at some point, for a variety of reasons. Common .htaccess directives include redirection of URLs, configuration of default documents, and enabling authentication requirements, among others.  Many content management systems (CMS) such as WordPress, Drupal, and Joomla utilize an .htaccess file so their scripts can function.

HostMySite's Linux web servers require that any changes to an .htaccess file be synchronized to the web server before the changes will take effect. This article provides steps for synchronizing the .htaccess file once it has been updated and uploaded to your website. If you have a CMS such as Wordpress, and find that links are not properly working, you may need to complete this .htaccess sync in order to properly load the website pages.

This article assumes that you are already familiar with how to log in to the customer control panel. If you do not know how to log in or have forgotten your password, please refer to this article first.

  • On the control panel Home tab, click "Manage Website" under the Websites section.

  • Click on "Web Hosting Settings".

  • From the General tab, click the "Sync htaccess" button.

  • A notice will appear on the screen stating that the update is pending. The sync will only take a few seconds to complete. To remove this pending notice, you must refresh this page in the control panel.

If you have any further questions that were not answered in this article, please contact us.

(16 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Copyright © 2016 HostMySite