It’s really up to you.
As a developer, I prefer working locally but if you do not develop but only add/remove/update themes and plugins, then a subdomain can be great.
This way, you can freely break your website without disturbing anyone.
Nowadays, lots of hosts providers are offering to create staging website in one click.
Regards
Related Posts:
- How to Work Seamlessly Between Development, Staging, and Production Sites in wordpress
- WordPress database synch between dev and prod
- Staging a WordPress site with WP-Deploy
- Best practice differences in DB options and wp-config between live, staging and local WordPress environments?
- Using second site as staging area
- Create brand-new re-designed site without affecting live site?
- Staging environment for pages only
- Multiple users working on WordPress admin at the same time [closed]
- How to sync staging to production but keep plugin settings
- WordPress Staging Site
- Staging only for Theme Files and Changes
- Staging Sites: What to push through?
- What are some tools for password protecting a staging site?
- Push from staging to live site?
- Staging site offline
- Locked out when attempting a migratoin
- how to move particular functionality to staging server
- Staging/production deployment on WordPress MultiSite
- git add only modified changes and ignore untracked files
- How to: Easily Move a WordPress Install from Development to Production?
- Best way to initiate a class in a WP plugin?
- Keeping WP database synced across multiple developers using git
- How do you avoid caching during development?
- Strategy On Building Plugin Using Eclipse
- DB connection error after copying a WordPress Multisite instance to a second location
- How do I add version control to my workflow?
- Staging sites, how do you manage synchronising updates in the DB?
- Ways of managing staging and production wordpress sites?
- WordPress as College Application System (Embark)
- Migrate Changes from a Staging Site to Production
- How to edit an existing WordPress theme? [closed]
- How do you add pages on a staging server, and then move them over to production
- WordPress Active and Development server best practices
- Change management solution for BP-based site?
- Cloning and syncing a WordPress website
- What actions affect files, DB, or both?
- Different color admin bars for dev, staging and production
- Staging Site: Made Public – Security Questions
- Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
- Staging setup for multisite installation
- Best Practice for Syncing Local Development With Staging Development [closed]
- Clone plugins (and settings) to new installation?
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- Can I develop a WordPress site without a domain?
- Staging sites era: does it still makes sense to develop locally?
- WordPress Multisite – configuring a local development copy
- Is It Always a Best Practice to Decouple the Frontend from the Admin Area When Developing a WordPress Application?
- Override database config for WordPress multiblog
- Building plugin with changeable custom post type values…advice needed
- Move first half of posts to one parent page, second half to the other page
- WordPress & WooCommerce: Localhost, Staging and production environments and how to sync them without losing data
- Published site reverts without changes to theme
- Migrating hosts, 500 errors and plugin issues
- Localhost to Staging to Development Dynamic WP-CONFIG
- Setup 3 Sites To Connect To 1 Database and Share Data
- How to run subversion and staging environments when running WordPress
- Development environment
- Is there a way to test my code quickly in WordPress environment?
- WordPress multisite – What’s the ideal setup for development/staging/production environments?
- production site routes to staging site after cloning
- How best to keep my localhost on Http while my Remote production is on Https
- How to deal with internal links in blog while developing new site in WordPress?
- Is there a way I can fetch the WordPress Developer Code References with an API?
- Custom links in menus not working in multiple environments
- how to Update 15k products on plugin activation with meta_option
- Clone WordPress site from development server to live server
- How to add testimonials with an image?
- Staging redirecting to live site (under construction page)
- How to stage a redesigned site on a new webhost while the original site is still live? [closed]
- Select parent page and all its child page but exclude one specific child page
- What is the correct way to set up a staging server and use github for version control?
- wp-insert-post execute from server?
- Merging new theme and plugins from development site to production
- How to fix mime-type and (after disabling nosniff) 404 errors for css and js files in staging site
- Cloning production site down to local?
- WordPress Staging site is redirecting to live and lost the child theme
- Staging Session Randomly Switched from Secure (https) to Not Secure
- Creating one user access account for all the multiple sites
- Gutenberg Development vs Release version?
- Scripts/styles not loading on cloned WP Site when logged in
- How to query a staging database?
- How do I quickly move between 2 local installations and keep them in sync?
- Migrating site from stage to production server without particular dev. plugins?
- Migrate php folder to WordPress
- Theme/Plugin/Widget Data and Staging/Production Servers
- How do I set up a test environment in a sub-folder?
- Update WooCommerce product price periodically
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- Imported Posts missing summary text on staging site
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- Is there any other ways to replicating changes on live from staging without pushing from git
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- How to maintain development losing any user’s data
- How do I setup my cpanel site backup on a local host?
- Top-level staging-site URL redirects to a different site
- Styles not showing up in WordPress site
- Staging site on subdomain – all links dont work except home page
- Live site menu links pointing to staging site pages
- Dynamic PHP content in Block Theme template file