How To Redirect cPanel Login With Page Rule?


#1

Dear All

We know that website with cPanel hosting can be accessed through domain,com/cpanel then redirected to cPanel login access such domain,com:2083 etc.

I know this is normal. But I want to remove (or hide) this feature. So, there’s no one can access cPanel login via domain,com/cpanel etc. I just curious if page rule can fix this issue. At least make redirect from domain,com/cpanel to home page or 404?

Regards


#2

I’d try this with a couple of page rules. Match:

First rule: *example.com/cpanel*
Second rule: *example.com:2083/*

Then Forward (Code 301) to your home page’s URL.


#3

It works. A thousand thanks for you, Sdayman.


#4

This topic was automatically closed after 14 days. New replies are no longer allowed.