I found the answer with a little more searching. Sorry — Admins feel free to delete this question!
The answer is here
add_action( 'template_redirect', 'wpse_76802_maintance_mode' );
function wpse_76802_maintance_mode() {
if ( ! is_page( 1618 ) ) {
wp_redirect( home_url( 'index.php?page_id=1618' ) );
}
}
EXCEPT …. if there is a way to enhance this redirect so that a 301 header gets added into the mix, that would be even better.
Related Posts:
- Redirecting to home-page when saving any edited code
- Random and Erroneous WordPress Redirect
- All pages showing up as homepage on WordPress website
- https multiple redirects
- Redirect home to another page with htaccess
- How can I redirect my website’s homepage to a random blog post?
- How to redirect to home page after registration?
- How to set up a single portfolio page as home page?
- Any action in wordpress redirects me to home page
- How can I replace my primary url globally with a parked one?
- Extra Text in URL
- Redirect /home to home.php
- How do I change the home page to the registered user’s profile page
- Add new post redirection [closed]
- How to Redirect WordPress domain.com/?anyword to 404 Page?
- How do I redirect the browser to 404 page, if no posts are found in home page
- Site using static homepage, redirects (301) and removes pluses from query string
- After disabling Multisite, homepage redirects to non-existing page
- One set of Child Pages redirecting to Home page?
- WordPress Redirecting Form Action to Home Page
- How do make WordPress to let alone my static home page?
- PHP header(Location: …): Force URL change in address bar
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- wp_redirect() function is not working
- My wordpress multisite homepage redirects to signup page
- Login redirect to previous page
- Prevent access to single post types
- WordPress install enters an infinite loop
- 301 redirect not working through .htaccess
- handling login/logout redirects
- Using `auth_redirect` : keeps asking me to login even when I’m logged in
- How can I move/redirect single blog posts from one blog to another?
- How do I skip wordpress’s 404 handling?
- Temporary redirect prevents getting $_POST array
- Can WordPress redirect to a “similar page” in case of 404 error
- Hacked website redirect, only on desktop, help with restoring it [closed]
- Can I check for maintenance mode before redirecting to subdomain?
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- Custom Registration page – prevent redirect to wp-login.php?action=register
- https redirect (with .htaccess) redirect loop
- How to target specific user role?
- How to auto login after registration? [duplicate]
- homepage redirects to login page when user session expires
- Redirect blog archive into certain format
- How to publish new posts/pages in root instead of subfolder, but keep old structure in place?
- forward domain name to particular page?
- Contact Form 7 Data to Whatsapp Link
- Auto-detect the redirect url from the original url
- WordPress Auto-Redirecting on 404
- I need to redirect an entire subdirectory in WordPress to the homepage – is this correct?
- My website on checking showing 403 error on HTTP Status [closed]
- I get redirected too many times only in wp-admin?
- How do I determine what is causing a redirect for a given page?
- Trouble running local WordPress in Google App Engine
- Empty folder being created by WordPress, breaks site
- Redirect all users to dashboard unless custom post type
- Redirecting connection from IP to localhost
- WordPress directing to Posts page (edit.php) instead of saving post
- HTML Redirect to WP pages
- How to redirect 40,000 urls with the same url structure efficiently?
- production site routes to staging site after cloning
- Custom URL routes
- Duplicated WP site manually, now links redirect wrong [closed]
- redirecting an entire WP site from one top level domain to another
- Load function with login_redirect
- Missing domain http://./wp-… in redirects
- All URLs Redirect to Main Page
- 301 redirects in Headway based WordPress Site
- Why I am not able to direct user to my blog section without login?
- A question about .htaccess
- Blog keeps redirecting to the contact page
- Can’t login to WordPress admin panel after changing domain to use WordPress pages as a fallback from React
- WordPress Pagination – 301 Redirect Issue
- date based redirect in wordpress
- Applying ‘middleware’ to a url before redirecting? Does WP have built in mechanism for this?
- How to regenerate RSS feed URL like FeedBurner?
- How to avoid redirect 302 in wordpress to the author pages?
- ERR_TOO_MANY_REDIRECTS when switching from good database to old database
- Redirect to /404/
- WordPress Staging site is redirecting to live and lost the child theme
- domain redirects to subdomain
- how can i find malware code and remove from wordpress site to stop it redirecting to hackers click view pages
- Redirect after plugin activation
- Restrict access if logged out except for homepage
- Redirect affecting development folder
- change home_url and site_url but don’t redirect to home_url and site_url on load
- how to write 301 redirect code for woocommerce product
- WordPress multisite and redirect to subpage
- My WordPress site redirects to port 8082
- Custom, conditional redirect on logout
- International characters in slugs to redirect to
- How to Block WordPress from subdomain?
- login page not working [closed]
- Debugging a redirect loop affecting only certain pages
- noheader on the user/frontend side
- Solution for WordPress URL structure changes and 301 redirects?
- WordPress redirect from one directory to another but exclude wp-admin and wp-login.php
- WordPress site redirecting to developers URL
- How to use the HTTP API (wp_remote_get) instead of cURL?
- After migration index page still redirects to old url