There’s no need to do it the way you mean. There are ways to host multiple SSL websites on a single domain both with Apache and Nginx, and it’s much easier to implement than your idea. Check out these tutorials:
Related Posts:
- Share same domain for wp-admin but for different website
- How to remove /index.php/ from URL’s
- How to remove “http://” When Echoing URL?
- Force home page to be https?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Change homepage url
- How can I change all links on pages to point to a different domain from where the site is hosted?
- Which of WordPress’s .php files need to be directly accessible via HTTP?
- Remove site root trailing slash
- URL parsing – what is it?
- Changing my site url from azure.net to custom domain
- Remove / from www.example.com/ [closed]
- How to add domain security certification, in WordPress website?
- How to server wordpress from SSL and non-SSL URLs
- Avoid the removal of “https:” from URLs
- Confusion about Site url and directory
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- Changing the website URL to the root folder
- Showing my server ip in source code for several links not for all links
- How do I avoid messing up URLs when switching from example.com/subdir to example.com?
- Cannot access WordPress website from external IP while internally it is working properly [closed]
- How to prevent unknown addresses which are accessed from my wordpress website [closed]
- DNS – Change WordPress Site Name?
- Alternatives to site_url() and get_template_directory_uri()
- What is the best way to revert to www version of domain name?
- Changing siteurl in the database not working
- How to make a seo friendly URL of 2 different pages with same words
- Why my URL has an unknown character string?
- Cannot Save Changes After Updating URL Settings
- Two domain site: Link base URLs point to wrong domain
- Making a site URL
- Can’t change url because site address is greyed out
- How to Convert Parent Page’s URL in Singular Name format when Child page is open
- How to get rid of %20 from the URL? Due to this, duplicate pages are being created
- SSL Error: unable to get local issuer certificate
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- Error Importing SSL certificate : Not an X.509 Certificate
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site?
- Error `sec_error_revoked_certificate` when viewed in Firefox only
- What’s the difference between home_url() and site_url()
- How do you retrieve a post by slug name through REST API?
- Why “?v=hash” is added to my URLs? [closed]
- Detecting a WordPress URL without doing a full HTTP GET?
- How does WordPress generate URL slugs?
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Custom plugin route in WordPress
- Why is ?doing_wp_cron being appended to my URLs
- Unwanted media library URLs in posts?
- Filter any HTTP request URI?
- Switching MultiSite installation from HTTP to HTTPS
- How to remove file versions from the file source links in wp_head?
- use query string in URL to display content on the page
- Change default URL path (/blog/) of blog posts
- Difference between esc_url() and esc_url_raw()
- Prevent “main” WPMU site_url() being returned in functions
- How to deal with WordPress on localhost
- Problem with guids and absolute links
- Getting the Site URL Including the Front Base
- Is there a way to force ssl on certain pages
- How to convert the file path to a URL of the same file?
- Add menu and submenu in admin with a URL instead of slug?
- Update media file url in wordpress media library
- Why is WordPress saving full-urls to the database?
- Get taxonomy slug from url
- Load images with http urls inside https post
- Remove All Query Arg
- Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page
- How to set global variable in functions.php
- Force the Website URL to Include “www” and to be Upper Case?
- Change logo url link
- WordPress and $_GET Params
- Can’t login after my site was moved to a new server
- WPML Get url without outputting
- Dynamic URL to reference custom PHP files
- How to inject custom url path for page ?
- List of default WordPress URLs
- Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?
- Adding a hook to ‘parse_request’ so that siteurl/pagename/xyz ignores “xyz”
- How to have numeric URLs in Posts and Pages
- Unable to load static front page on home url
- Why WordPress automatically removes http from the url of my website’s sub domain?
- add_query_arg() One Key with multiple values
- Weird: /?name in URL leads to blog
- I am Looking to append URL Parameter to all URLs
- Login to wp-admin “redirect_to” points to wrong URL after migration
- How do I amend the fixed “author” part in the URL?
- Dynamic URL generates dynamic content
- Moving wp-content outside of web root?
- Pages redirected to attachment post
- Generate one time URL
- In Settings>>General I am missing some fields
- WP redirects all pages from new domain to old domain
- Woocommerce different URL for every table placed in the restaurant
- As soon as I add a custom query_var using the filter, my pages point to an archive page – why?
- Is dynamic URL possible in WordPress
- Do I need to use the esc_html() function on hard coded links?
- redirect 301 old url to new url
- Adding target and _blank as it’s value to the allowedtags