Add Custom Domains and HTTPS Support to Your Local WordPress Development with Studio


WordPress Studio continues to evolve with features that make local WordPress development more powerful and flexible. In Studio version 1.3.9, you now have custom domains and HTTPS (SSL) support.

As a reminder, Studio is our free and open source local development environment. It’s a powerful, lightweight tool that enables straightforward workflows for both extending and building WordPress sites.

Why custom domains and HTTPS matter

When developing WordPress sites, you often need to replicate the production environment as closely as possible. Many WordPress plugins and themes require specific domain names or HTTPS to function correctly. Previously, accessing your local WordPress sites in Studio meant using localhost with port numbers, which could limit your testing capabilities.

With custom domains and HTTPS support, you can now:

  • Assign custom domain names (e.g., my-blissful-website.wp.local) to your local Studio sites.
  • Test features that require proper domain names.
  • Develop with SSL/HTTPS enabled.
  • Create a more production-like environment locally.

How it works

The implementation is designed to be as seamless as possible, with Studio handling nearly all of the technical details in the background.

To enable these features in Studio:

  1. Create a new site or edit an existing site using the “Edit site” button on the “Settings” tab.
  2. If creating a new site, toggle “Advanced settings” in the modal that appears.
  3. Enable the “Use custom domain” option.
  4. Choose a domain name with the .local TLD (e.g., my-blissful-website.wp.local).
  5. Optionally, check the “Enable HTTPS” option for secure connections.
A custom domain and the enable HTTPS settings in Studio on a blue background
  1. Click the “Add site” or Save button, depending on whether you are creating a new site or editing an existing one. 
  2. When prompted, permit Studio to modify the system hosts file. Studio will configure everything else automatically. 
  3. For HTTPS connections, a root certificate authority will be generated and installed. On macOS, you’ll need to manually install the certificate to avoid browser warnings. Refer to the documentation for more details.
  4. Navigate to your site using the custom domain.

What’s next for Studio

At WordPress.com, we’re constantly fielding your feedback and iterating to make Studio the best local development environment for WordPress sites. Custom domains and HTTPS are just some of the many features we’re adding based on your needs and feedback.

Have more feedback to share with us? Open an issue in GitHub.

Download Studio today to start developing locally, and subscribe to our developer newsletter, Dev & Deploy, to stay in the loop on all things Studio. 



Source link

  • Related Posts

    How to Build a One-Page Website with WordPress (Step-by-Step)

    Not every website needs a ton of pages and posts. In fact, with a clear focus, a one-page website may be sufficient for many use cases. If you don’t have…

    Improved Control for Your Newsletter with Categories and Subscriber Management

    We’ve been busy developing new features that make creating, managing, and growing your newsletter through WordPress.com easier. These features give you more control and better insights into your audience. As…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    Agnes Benn’s death and the hidden history of Birtle residential school’s predatory principal

    Agnes Benn’s death and the hidden history of Birtle residential school’s predatory principal

    Beagle has a new long-range drone with more than one application

    Beagle has a new long-range drone with more than one application

    Dustin May returns after 22 months as Dodgers start season 7-0

    Dustin May returns after 22 months as Dodgers start season 7-0

    How Much Does a Membership Cost?

    How Much Does a Membership Cost?

    Who Is Susan Crawford, the Wisconsin Supreme Court Candidate Taking on Elon Musk?

    Who Is Susan Crawford, the Wisconsin Supreme Court Candidate Taking on Elon Musk?

    Israel to expand military operation and seize ‘large areas’ of Gaza

    Israel to expand military operation and seize ‘large areas’ of Gaza