Setting up Drupal without a domain name A site's been developed on localhost and I want to move it to my new hosting, which uses Plesk. 
This hosting doesn't have DNS pointing to it, although the domain is added. (The domain name is currently pointing to my old hosting.)

I have changed $base_url to the preview URL Plesk provides:

$base_url = 'https://the-url-pleskprovides:8443/sitepreview/http/myurl.com';


I can access the site and even browse, but I can't login because login redirects to https://the-url-pleskprovides:8443/user instead of https://the-url-pleskprovides:8443/sitepreview/http/myurl.com/admin/.

Is there any way to work with Plesk preview, or with Drupal without a domain?

Any help will be highly appreciated.
Ok, the answer is unfortunately Drupal can not handle this situation. What should be done is the following:

On Windows

Go to: C:\Windows\System32\drivers\etc 

Open: hosts file

Add at the end: 

100.200.10.20 yourdomainname.com
109.200.10.20 www.yourdomainname.com


On Mac

Open Terminal (Applications -> Utilities -> Terminal) 

Open hosts file: $ sudo nano /private/etc/hosts 

Type your user password when prompted 

Add at the end: 

100.200.10.20 yourdomainname.com
109.200.10.20 www.yourdomainname.com


Save the file Flush the DNS cache: $ dscacheutil -flushcache

NOTE: The IP is the IP of your server. You can get it by logging into Plesk, Home>System Overview