Missing .htaccess when transferred from another server

vKios

Member
Aug 8, 2011
6
0
51
I setup a new server to transfer accounts from my old server. I used Transfer Tool from WHM. The problem is the .htaccess is missing.

Old server
v66.0.29
EasyApache 4
Apache 2.4 and PHP 5.6
Engintron

New server
v66.0.34
EasyApache 4
Apache 2.4 and PHP 5.6
Engintron

I read Transfer Tool - dotfiles/hidden files
Then I added new server's IP to old server's hosts.allow. Then, I tried to transfer again. The error "HTTP/1.0 401 Access Denied" didn't show again. But, I still don't see .htaccess in the new account.

I tried to transfer an account from my other server (EA 3). I found .htaccess was transferred successfully. So, I guess the problem only from EA 4.

I already opened a ticket for this problem (#9085387).

Thanks.
 

cPanelMichael

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

I'm glad to see the issue is now solved. Thank you for updating us with the outcome.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
933
21
168
This issue isn't resolved. It happened today on an account transfer for me. The main .htaccess file in the public_html directory was not transferred to the new server.

I think this only happens when "express transfer" is chosen. If the file is modified on the source server in order to redirect requests to the target server, it might be that the file doesn't get copied - but in such a case you'd expect the transfer process to make a copy / rename of the file before making changes and transfer that one over to the new server.

Issue definitely still happening.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hi @4u123,

I'd like to reproduce this on a test environment. Can you verify which versions of cPanel were installed on the source and destination servers when you encountered this issue? Is port 2087 blocked/restricted by IP address on the source server?

Thank you.