Articles on: Getting Started (WebPro)

How to Install and Uninstall Astra Website Protection in HTML websites

You can install Astra Website Protection on HTML websites, with a few modifications.

Step 1 - Update the .htaccess file



Since the plugin is dynamic in nature and is written in PHP, we need to instruct the web-server to treat all the HTML files as PHP. This can be done by adding the following code in your .htaccess file.

PHP VersionCode
PHP 5.6AddHandler application/x-httpd-php56 .php .htm .html
PHP 7.0AddHandler application/x-httpd-php70 .php .htm .html
PHP 7.1AddHandler application/x-httpd-php71 .php .htm .html
PHP 7.2AddHandler application/x-httpd-php72 .php .htm .html
PHP 7.3AddHandler application/x-httpd-php73 .php .htm .html
PHP 7.4AddHandler application/x-httpd-php74 .php .htm .html


Step 2 - Install Astra Website Protection



Now we need to install the protection on your server. Follow this guide on installing Astra Website Protection without a plugin.

Updated on: 10/07/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!