';
echo '
';
echo '
' . __('Please read carefully before proceeding', 'wp-htaccess-editor') . '
';
echo '
There is nothing wrong with editing the .htaccess file. However, in case you make a mistake while editing it, there is a possibility you\'ll need FTP access to restore your site to a working state. That\'s why this plugin makes automatic backups, and we have described in detail how to recover from such incidents in the paragraphs below.
';
echo 'For more details about .htaccess syntax and examples, please visit the official Apache Tutorial.
';
echo '
How to restore the site in case of error 500 or white screen caused by .htaccess';
echo '
Do not panic. No data is lost, and your site will be up again in minutes. FTP to your site or open the server\'s control panel such as cPanel to locate the .htaccess file in ' . esc_attr($this->get_htaccess_path()) . '. Once you find the file there are several options to restore the site;
- Edit the file and fix the error(s) you made, or
- Delete the file. Obviously, any custom rules in it will be gone, and in order for permalinks to work again you have to visit WP Admin - Options - Permalinks and click "Save Changes". This will rebuild the default .htaccess file, or
- Third (and preferred) way of fixing is to restore the file from the backup which you\'ll find in the
' . esc_attr($this->get_backup_folder()) . ' folder. The folder will probably contain multiple backup files. Locate the latest one by looking at the timestamp in the filename. Once located copy the file to ' . esc_attr($this->get_htaccess_path(true)) . ' and rename it to .htaccess.
';
echo '
How to restore .htaccess in case of a non-white-screen error';
echo '
Click the "Restore Last Saved Backup" button below the editor and .htaccess will be restored to the version before the last save. Please note that this method only works if the error in the file is logical, not syntactical. For instance, if you banned the wrong IP you can undo. But if you misspelled "RewriteCond" you have to use the method above as the only way to recover is via FTP or cPanel.
';
echo '
Support';
echo '
For additional support and questions, please visit the official support forum.
';
echo '
';
// ask for rating after first save
if (true == $this->get_dismissed_notices('rate')) {
// notice dismissed, never show again
} else {
if ($meta['edits_count'] > 0 && false === $notice_shown) {
$notice_shown = true;
$show_rate_notice = '';
} else {
$show_rate_notice = 'display: none;';
}
echo '';
}
echo '