How to update your hosts file.
Every computer has a file on it which allows the owner to specify where a website is loaded from. A hosts file is a simple combination of domain names and IP addresses.
Adding a record to your hosts file means your computer will load the domain using the IP address specified, rather than the one provided by DNS.
111.222.333.444 www.domain.com 111.222.333.444 domain.com 111.222.333.555 subdomain.domain.com
Windows
- Press the Windows key
- Type Notepad
- From the results, right click on "Notepad" and choose "Run as administrator"
- From Notepad load the file
C:\Windows\System32\Drivers\etc\hosts
- Enter the IP address, followed by a space or tab, and the domain
- Save the changes
- Exit Notepad
Linux
- Open a terminal window and enter
sudo nano /etc/hosts
. - Enter your password if prompted
- Enter the IP address, followed by a space or tab, and the domain
- Ctrl+O to save
- Ctrl+X to close
MacOS X
- Open a terminal window and enter
sudo nano /etc/hosts
. - Enter your password if prompted
- Enter the IP address, followed by a space or tab, and the domain
- Ctrl+O to save
- Ctrl+X to close
Latest posts
—
Structured data for SEO
Adding structured data to a website is one of those steps that often gets overlooked, yet it can make a real difference to how a site performs in search engines.…
—
Using WordPress as a static site generator
Static site generators have gained significant traction amongst developers, designers, and businesses seeking faster, more secure websites. Unlike traditional dynamic sites, which rely on a database to deliver content on…
Continue reading "Using WordPress as a static site generator"
—
Simple steps to protect your privacy online
In today’s digital world, protecting your privacy online has become essential. With personal data constantly being shared, stored, and potentially accessed by unauthorised parties, safeguarding your privacy can help you…
Continue reading "Simple steps to protect your privacy online"
—
Moving a WordPress Website with ACF and Custom Post Types to Brightspot CMS
Migrating a website from WordPress to Brightspot CMS can seem daunting, particularly when the WordPress installation relies heavily on Advanced Custom Fields and Custom Post Types. Both ACF amd CPT…
Continue reading "Moving a WordPress Website with ACF and Custom Post Types to Brightspot CMS"