Search code examples
wordpresscpanelwp-admindomainexpiration

How to access Wordpress wp-admin dashboad after domain is expired?


I had a domain name called: http://p2pproductions.in

Which expired a few months back since we are moving to a new site.

I have downloaded the Site files and Database scripts.

I wanted to log in to the existing WP dashboard but since the domain is expired I have no way to login to it.


Solution

  • You will need to edit your local computer's hosts file. This will make your browser to locally resolve the domain to the IP that it was previously hosted on.

    The file is usually present in

    Windows: C:\Windows\System32\Drivers\etc\hosts.

    Linux: /etc/hosts

    Mac: /etc/private/hosts OR /etc/hosts

    In there you need to find your cPanel's IP, then append the line

    IP www.domain.com domain.com
    7.7.7.7 www.p2pproductions.in p2pproductions.in
    

    After that save and close your hosts file, clear your browser's cache and access your site again - you will resolve it from your cPanel account.

    Alternatively you can also use the same manner by visiting https://hosts.cx/ - in the Server Address enter your cPanel account's IP and in the Website name - p2pproductions.in