Do you have to have secure.domain.com function or can it redirect?
The tl;dr is that you don’t. The primary domain is the cheese: it stands alone. However…. You can use .htaccess to check ‘If someone is coming from secure.domain.com, send them to domain.com’
RewriteCond %{HTTP_HOST} ^secure\.domain\.com
RewriteRule ^(.*) http://domain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.domain\.com
RewriteRule ^(.*) http://domain.com/$1 [L,R=301]
That’s about as good as it gets. (Mind you, if your server itself doesn’t redirect www.domain.com to domain.com, it needs a kick in the pants anyway…)
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]
- 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
- 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?
- SSL and www to non-www redirection works only on homepage – WordPress
- ReDirect subfolder link to another sub-folder and force SSL
- 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
- Force SSL on a single page which is used as iFrame
- How to map secure.domain.com to www.domain.com or domain.com with “WordPress MU Domain Mapping” on the primary multisite domain?
- How to force HTTP and stop SSL completey on WordPress website
- PHP header(Location: …): Force URL change in address bar
- 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
- 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?
- Redirecting to home-page when saving any edited code
- 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 auto login after registration? [duplicate]
- Can WordPress pass through a call to an external API and return the result directly to the client?
- Redirecting old post url to 404 in wordpress using htaccess
- CNAME vs A Record for WWW – with 301 Redirects
- Any action in wordpress redirects me to home page
- Handle regular expression based redirects without .htaccess
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- Redirect some of the languages on a multi-language site
- Why is there a status message “302 Found” on top of the site?
- !is_admin() condition turns true in admin pages
- How to forward all requests starting with a specific folder name to the same folder
- WordPress index.php seems to perform unwanted redirect 301
- Custom Login Form – Redirect user to login page if not logged in
- How to redirect from one WP site to another
- Extra Text in URL
- wp_redirect and current_user_can issues
- WP_List_table with form of method=GET redirects to wrong url after submit
- Redirect wordpress website’s subpage to root [closed]
- My Cloned WP site keeps redirecting to the old one
- Can’t do 301 Redirect, Why?
- WordPress Permalink Problem 404
- How can I set up a splash page that is redirected to only one time for the visitor? [closed]
- Is there way to redirect all blog post pages to Home page?
- Temporary Infinite Redirect Loop
- Select post from dropdown and add query args not working
- Trying to map a PURL like url to a page
- A question about .htaccess
- Add new post redirection [closed]
- 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
- 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
- Redirect affecting development folder
- change home_url and site_url but don’t redirect to home_url and site_url on load
- WordPress multisite and redirect to subpage
- 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?
- How to force or redirect to SSL in nginx?
- After migration index page still redirects to old url