How to Install and Uninstall Astra Website Protection in HTML websites
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 5.6 | AddHandler application/x-httpd-php56 .php .htm .html |
PHP 7.0 | AddHandler application/x-httpd-php70 .php .htm .html |
PHP 7.1 | AddHandler application/x-httpd-php71 .php .htm .html |
PHP 7.2 | AddHandler application/x-httpd-php72 .php .htm .html |
PHP 7.3 | AddHandler application/x-httpd-php73 .php .htm .html |
PHP 7.4 | AddHandler 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.
Did this answer your question?