Edit your computer’s hosts file, then on a new line, insert the IP address of the new or old server from which you’d want to access the site, followed by a space or tab, then type in the domain name (without http://). Here’s an example…
# This is an example of the hosts file
127.0.0.1 localhost loopback
::1 localhost
23.21.230.21 mydomain.com www.mydomain.com
23.21.230.21 subdomain1.mydomain.com subdomain2.mydomain.com
# None of the following will work as expected. Don't be disappointed!
# 23.21.230.21 mydomain.com www.mydomain.com subdomain1.mydomain.com
# 23.21.230.21 mydomain.com *.mydomain.com
Please replace 23.21.230.21
with the actual IP address of the server from which you’d want to access the site. You may also need to reopen the browsers after every change in this file.
I hope this answers your question.
Related Posts:
- Allow user to select a theme to install when they signup
- What’s the difference between get_site_option and get_blog_option?
- Multisite Domain Mapping with SSL
- Basic Multisite Question – Managing Content Centrally
- WP-Admin not working properly at WordPress multisite with subdirectories
- Multisite – Keep users logged in only to their site
- Is there an easy way to separate themes on network?
- How to use WordPress multisite with mixed HTTP and HTTPS sites?
- Multisite with Different Domains
- Weird Issue with load balanced WP 3.0 setup
- Removing orphan users in WordPress Multisite
- Sharding BLOGUPLOADDIR
- How does WordPress connect sites and the wp_users table?
- Hook filter to change wp_upload_dir() path in multisite
- Error 101 after upgrading WordPress
- Copy posts from one blog to another in multisite environment
- SSL for mapped subdomains in multisite (no plugins)
- How to add new sites and map a custom domain in WordPress Multisite?
- 301 Redirects for posts, category, pages from original domain to sub-domain of multisite
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]
- How To Remove Dashboard Menu Items for Multisite Users?
- Can wp-cli display all users and their roles across all sites in a multisite instance?
- How do I add JavaScript that will execute on all my sites in Multisite?
- How to update_site_option for specific site within network?
- Staging setup for multisite installation
- Wordrpess Subdomains (Multi-Site) without Wildcard
- Any downsides on using Multisite for many look-alike-websites?
- WordPress Images Not Showing When FTP
- Multisite Super admin and Network admin emails
- Is there a way to run upgrade.php for one blog?
- How to run a subdirectory multisite install under a subdomain
- How do I list multisite users for the current site only
- Using Two Themes – One for Main Site, One for Ecommerce
- WordPress Multisite – configuring a local development copy
- Domain name in a WordPress Network
- Multilanguage site with two domains
- Site not found using subdomains
- Is it possible to install BuddyPress with blogs installed on several servers? [closed]
- All wordpress network subfolder sites being redirected to main site
- Get current Blog ID in Tinymce Plugin Dialog Window in WPMU
- Grandchild themes and optimal network architecture
- Multisite – Change Add user to Blog notification email
- URL without www redirect directly with submission page – Multiwordpress install
- WordPress Multisite + Erros with URLS and ADMIN
- How can I tell if a wordpress site is running on multisite?
- Adding hreflang to multisite with no plugin?
- Obtaining user table for one site on multisite set up
- possible to combine sites that have lots of content, into multisite?
- How to autologin users after creating a new site (multisite)? [duplicate]
- Does a single theme license work on multisite? [closed]
- Multisite – getting a 404 for additional site created using subdomain install
- muliple wordpress multisite installs on the same sever
- WP Multisite – Additional subdomain on the site for API purposes
- get_last_updated() not working – multisite loop
- Old Website Address Still Showing
- Multisite configuration for multiple domains
- Multisite adjust uploads like (/upload/%alphanumeric_id%/%file_type%/%blog_ID%)
- 404 not working on main site on multisite
- Is it possible to create /sub/sub domain based multiste?
- add_blog_option blog ID
- How long is “as long as possible” in wp_cache_set()?
- Changing from localhost:8888 to localhost
- WordPress multilingual site to work with other plugins
- Cannot see dropdown shortcut to site dashboard in WordPress network why?
- How can I install WordPress as blog provider , stable?
- List all sites created in network and get the language used for each site
- Error after changing multisite URL
- Multisite Dashboard Always Redirects to Main Dashboard
- Moving from a non WordPress site to a WordPress Site – Login between both sites
- WP Multisite child theme: get_template_directory_uri() seeks it’s own subdirectory instead of directory of parent theme
- Rewriting request to another site
- Multi-Network without plugin
- How install wordpress in another wordpress folder?
- WordPress Multisite: Login to all subsites at once
- How to mapping a WordPress MultiSite Network Subdirectories to new domain with all subsites
- All Multisites are working as one site
- WordPress Multisite header img src is lost from staging to production
- Multi-site Installation in WordPress | Security & Future Migrations
- Get the latest 3 posts across the network
- Synchronize wordpress site between two different servers
- Blog broken after changing Site/Home URL
- Configuring Multisite with subdomains
- Autoblog posts in wpms(network) into main site including featured images
- Cron job disappering without notice?
- WP Multisite .htaccess interferes with cgi-bin
- Redirect all users, except network administrators, from the main site to a subsite
- Apply Lazy loading/Infinite scroll on array data
- load styles and scripts in network admin not working
- How to redirect author subdomain pages to each author pages on www
- How do I make a copy of WordPress to other folder
- MU Domain mapping
- Set static page as default front page on newly created sites in multisite
- Avoid landing page redirects issue in wordpress multisite
- WordPress shows death white screen on multisite
- Multisite website configure Domain issue
- Can i use the same content in two websites? one is the main website and one is directory website
- WordPress Multisite
- Multisite admin panel not working after the update
- WordPress Network / Multisite login to one site allow access to all