You are getting redirected because of the automatic redirection to the canonical address of the page which is http://…. You will need to use the redirect_canonical filter https://developer.wordpress.org/reference/hooks/redirect_canonical/ to tell wordpress to not redirect for that page.
Related Posts:
- wp_redirect() function is not working
- Redirect page URL to home URL without using a plugin
- Why is WordPress redirecting from http to https on a local environment?
- WordPress HTTPS redirect loop
- Force HTTPS using .htaccess – stuck in redirect loop
- Password change when the user login first time
- How to redirect url requests to https? [closed]
- Stop unwanted WP redirection to new url
- wp-login.php — redirect logged in users to custom URL
- Redirecting old site links to new site
- Redirect to login page
- Temporary redirect prevents getting $_POST array
- WordPress redirect loop on nginx + apache reverse proxy
- Creating intro page in wordpress
- URL Redirect and Bulk Actions in wp_list_table
- Headers already sent – WordPress core
- Perform a redirect after user action
- How To Only Allow Users To View Their Own Buddypress Profiles? [closed]
- Mixed Content with SSL, wordpress behind a reverse proxy
- Disabling HTTPS redirection for migration
- Strange redirection issues on wordpress from ssl with padlock to ssl without padlock
- How to auto login after registration? [duplicate]
- header and wp_redirect not working. cannot modify header information warning
- Code to create a redirection after login?
- How do I redirect /search/ to ?s=
- WordPress Redirecting HTTPS Requests to HTTP
- Infinite loop behind SSL proxy on non-standard port
- How to redirect to home page after registration?
- How to use Regex to add to a url?
- Redirect first category archive page to normal page
- Stuck In a Redirect Loop
- What is the right way to redirect all traffic to HTTPS?
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- SSL and www to non-www redirection works only on homepage – WordPress
- How to redirect if a background request is still being executed
- Redirect custom post type from one domain to another domain
- I get redirected too many times only in wp-admin?
- Redirect user to previous page after signup from custom form
- Get query parameters from external url and make a redirection
- wordpress_redirect returns different headers for HEAD and GET requests
- Show different page for first time user
- ReDirect subfolder link to another sub-folder and force SSL
- Network Admin URL is shown to anyone before accessing a blog
- Redirect outside WP after login
- HTML Redirect to WP pages
- Why does the $_GET parameter ?search forward the front-page to the archive/blog page
- store URL global before we redirect
- Is it possible to wp_redirect() to a new tab?
- Redirect Attachment Page to Attachment
- How to redirect from one WP site to another
- How do I write a subdomain redirect?
- WordPress CSS/Theme gone after SSL got activated
- My site doesn’t redirect from HTTP to HTTPS
- How to fix automatic redirects?
- Only execute function if SSL is set up properly
- Redirect User to login page
- Missing domain http://./wp-… in redirects
- HTTPS to HTTP rewrite rules not working as expected
- Redirecting simple big problem
- Redirect Page ID, based on logged-in User Role
- Trying to re-direct users to specific page based on an ACF variable
- How to redirect a child page to its parent page?
- WordPress multi domain: page redirect to main domain whenever WordPress do the URL guessing issue
- Applying ‘middleware’ to a url before redirecting? Does WP have built in mechanism for this?
- How can I prevent caching of wp_redirect?
- Debugging issue with redirection in WordPress
- Browsers Forcing Multisite to https
- Add base folder to CPT and 301
- How do redirect user back to previous page when on certain pages?
- How do I redirect the browser to 404 page, if no posts are found in home page
- Is the default value of FORCE_SSL_ADMIN documented?
- Keep the old referrer after failed login
- How to remove redirection
- How to redirect if 404 error in wordpress then redirect 404.php url
- ERR_TOO_MANY_REDIRECTS when switching from good database to old database
- Redirect to /404/
- Redirect Category Media ‘URL’ when clicked
- How to automatically redirect category pages (301) when changing the location of a category in the hierarchy
- wordpress automatic URL ‘page’ parameter rewrite
- Make custom post type archive for administrator only
- 301 Redirect Loop www to non-www – Nginx + Apache2
- How to 301 redirect sub domain post URL to root domain
- Disable WordPress URL auto Redirect
- I get “too many redirects” problem when migrating localhost site
- Internal redirect from page to category
- How to redirect new registrars to a custom registration page instead of WP default registration page?
- redirect after account activation for forum using bbpress and buddypress
- using wp_rewrite but keep the original url in the address bar
- redirect_to ignoring the SSL
- Moving site from HTTP to HTTPS
- How to redirect 404s that generated for css&JS files?
- I have cloudflare flexible enabled, How to redirect to https for Nginx server
- Redirect based on $_GET parameters
- Headers already sent error after upgrading wordpress to 4.2.2
- Redirect to a subdirectory frontpage using without using a WP plugin- what files to edit, and how?
- problem redirecting users to page on login
- Create a 301 Redirect automatically when adding %category% in the permalink
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- wp_redirect() doesn’t work
- How to force HTTP and stop SSL completey on WordPress website