In the end I ended using mod_rewrite through .htaccess. The following is what I am using and so far is working well.
RewriteCond %{HTTP_HOST} ^secure\.domain\.net$
RewriteRule (.*) http://www.domain.net/$1 [P,L]
Related Posts:
- Why is WordPress redirecting from http to https on a local environment?
- Force HTTPS using .htaccess – stuck in redirect loop
- How to redirect url requests to https? [closed]
- Custom domain for sub-section of parent website
- WordPress redirect loop on nginx + apache reverse proxy
- Mixed Content with SSL, wordpress behind a reverse proxy
- https multiple redirects
- Disabling HTTPS redirection for migration
- Strange redirection issues on wordpress from ssl with padlock to ssl without padlock
- How do I map a subdomain in wordpress to the primary domain in a multisite setup?
- WordPress Redirecting HTTPS Requests to HTTP
- Infinite loop behind SSL proxy on non-standard port
- What is the right way to redirect all traffic to HTTPS?
- Changing domain
- SSL and www to non-www redirection works only on homepage – WordPress
- ReDirect subfolder link to another sub-folder and force SSL
- A WordPress site with more than one domain name / Parked domains
- How to fix too many redirects when enabling SSL for site?
- WordPress CSS/Theme gone after SSL got activated
- My site doesn’t redirect from HTTP to HTTPS
- Only execute function if SSL is set up properly
- HTTPS to HTTP rewrite rules not working as expected
- Browsers Forcing Multisite to https
- Is the default value of FORCE_SSL_ADMIN documented?
- 301 Redirect Loop www to non-www – Nginx + Apache2
- I get “too many redirects” problem when migrating localhost site
- redirect_to ignoring the SSL
- Moving site from HTTP to HTTPS
- I have cloudflare flexible enabled, How to redirect to https for Nginx server
- Multisite hide subdirectory
- Force SSL on a single page which is used as iFrame
- how to get my WP site’s IP? [closed]
- How to force HTTP and stop SSL completey on WordPress website
- How to redirect non-logged in users to a specific page?
- When I change slug, will WordPress create redirect from the old URL?
- Why am I getting a 301 on a existing post?
- Keeps on redirecting on my development copy
- Password change when the user login first time
- Custom login form redirect to external site
- Redirect to custom url when registration fails?
- Exclude a path from WordPress using .htaccess redirects (Apache)
- Best way to handle redirects
- Redirect to custom URL after registering from a page with registration form
- Stop unwanted WP redirection to new url
- WordPress Customizer: custom redirection after closing
- Why wordpress multisite redirect to wp-signup if site exists?
- Hiding WordPress behind IIS redirects
- htaccess 301 redirect http to https doesn’t work
- Site redirecting from http to https [closed]
- Use htaccess to redirect WordPress to static website in a subfolder
- Defining a custom 404 for non-WordPress parts of site
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- How to redirect URL with subfolder to the same URL but without subfolder?
- Site loads very slowly (4-5 minute load time)
- Snippet for own (gr)avatars
- 503 Service Unavailable error was encountered
- How to redirect if a background request is still being executed
- Page template that redirects user based on role
- How can i resolve 301 redirection Issue on my website?
- WordPress keeps redirecting subpages without http to https homepage after switch
- Two WordPress installations: One in root and one in sub directory – no images in subdir installation [closed]
- Redirect user to original url after login?
- Redirect user if they are not logged in
- How to redirect a wrong search on my wordpress website to the error 404 page?
- store URL global before we redirect
- Redirect to page for KPI/marketing purpouses
- Will deleting WP’s code in .htaccess cause problems?
- Migrating to Tumblr [closed]
- Parked domain redirect
- How to fix automatic redirects?
- Redirecting DNS without breaking everything
- How to redirect non existent pages/posts in wordpress using htaccess
- redirect doesn’t work while using example code
- How to redirect all page requests to a single “goodbye” homepage? [duplicate]
- Endless Redirects Suddenly Disable Site
- Redirecting home to /wp-login.php?action=register
- How to redirect a child page to its parent page?
- 301 redirect after removing language directories
- wp_login_form() redirect same page
- Redirect user after login to prior page through a wp_login hook
- Redirect *.php to path using web.config file
- How can force redirected to login for two or more pages to view or access
- Auto redirect to different web page
- Login redirects to home page and doesn’t log in
- wp_redirect() not redirecting user to supplied URL
- using wp_rewrite but keep the original url in the address bar
- Some links keeps redirecting to another domain
- Redirect every link that starts with
- login redirect problem – db charset issue?
- .htaccess not working after page slug change
- can’t handle a redirect
- Wrong Redirection
- Rewrite rule for incoming urls
- Detect if request is coming from wordpress conditional statement
- wp_login_form: Redirect to dynamic url according to username
- Plugin redirects URL structure using 301 redirect. Time to disable the plugin?
- URL is redirecting (301) when query string is passed through URL
- Plugin html-on-pages: URL not redirecting
- Redirect a WP to another with all URL
- Redirect certain 404 pages to parent page