pkgacct htaccess failed

hinhthoi

Member
Mar 28, 2017
18
2
3
Vietnam
cPanel Access Level
Root Administrator
Hi,

When I run the pkgacct to backup account, I got the following error

Fixing up EA4 .htaccess blocks: /home/username/public_html/.htaccess ^[[1;30;43m(failed)^[[0m Done

I'd like to ask how to fix this problem? (Why does it need to fix up something of htaccess file? I think the htaccess is working normally)

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

That step of the backup process ensures the .htaccess file is supported if the account is restored on a different environment (e.g. different default PHP version, EasyApache 3). Could you let us know the full contents of the .htaccess file utilized by that account (ensure to remove references to real domain names)?

Thank you.
 

hinhthoi

Member
Mar 28, 2017
18
2
3
Vietnam
cPanel Access Level
Root Administrator
Hi,

Here is the content of the htaccess file

<code>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
# BEGIN MainWP
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-content/plugins/mainwp-child/(.*)$ /wp-content/plugins/THIS_PLUGIN_DOES_NOT_EXIST [QSA,L]
</IfModule>

# END MainWP
</code>

So, if the new server has different default/easyapache 3 versions, the actual htaccess file should still be restored (it may or may not work, but the physical file should be restored, is it correct?)

Thank you!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

Yes, the .htaccess file should still be included in the archive and restored as-is based on the logs you provided.

Thank you.