Wildcard forward all posts and pages with few exceptions

You could do something like the following at the top of your .htaccess file, before the WordPress front-controller: # Prevent rewritten requests (to the WP front-controller) from being redirected RewriteCond %{ENV:REDIRECT_STATUS} . RewriteRule ^ – [L] # Redirect everything from “example.com” to “example.dev” # Except for certain URLs that should stay at .com RewriteCond %{HTTP_HOST} … Read more