Disable redirection to ip/~user

dubraise

Member
Nov 16, 2019
5
0
1
Morococ
cPanel Access Level
Root Administrator
I just finished migrating a webiste to a new server (both use whm/cpanel), but now when I try to access the domain name or the IP address it keeps redirecting me to IP_ADDRESS/~user. I Disabled the UseDir in the httpd.conf file bit nothing. Any idea ? Thanks
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
It sounds a bit like you have a caching issue, I'd suggest clearing your browser's cache or using a different browser.

Also, ensure that by disabling mod_userdir you didn't disable mod_userdir protection which actually enables the ability to use mod_userdir.
 

dubraise

Member
Nov 16, 2019
5
0
1
Morococ
cPanel Access Level
Root Administrator
Hi,
Sorry for the late reply.
Indeed I tried to disable the mod_usedir and redirection, I used a different browser with private browsing but nothing changed, I still got redirected to IP~/user.
 

dubraise

Member
Nov 16, 2019
5
0
1
Morococ
cPanel Access Level
Root Administrator
Hey,
Thanks for your reply Lauren.
Yes, I pointed the dns to the new server (I'm not using the primary domain name yet, until I figured this error, so we can consider this server as preprod one).
The domain name i'm using for the tests is domain.ga (domain.ma point to the old server dns).

Thanks again.
 

Attachments

Last edited by a moderator:

dubraise

Member
Nov 16, 2019
5
0
1
Morococ
cPanel Access Level
Root Administrator
I think I din't explain my self well (Sorry English is my third language). When I type the IPAddress or domain_name (lmnewprod dot ga) I get a redirection to IPAddress/~livremoi, that's the behaviour I want to get rid of.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
Hello,

I see, I misunderstood what you were trying to do. You need to disable the exclusion on those sites. Uncheck the two boxes I've highlighted on the screenshot you provided and click save at the bottom.

mod_userdir.png
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
This sounds a lot like a caching issue as this should not function if it is not excluded from protection.
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!