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
- Custom plugin route in WordPress
- Why is ?doing_wp_cron being appended to my URLs
- Change default URL path (/blog/) of blog posts
- How to deal with WordPress on localhost
- How to convert the file path to a URL of the same file?
- Why is WordPress saving full-urls to the database?
- Change logo url link
- List of default WordPress URLs
- add_query_arg() One Key with multiple values
- WP redirects all pages from new domain to old domain
- redirect 301 old url to new url
- How to update media links in WordPress after migration?
- Concatenate site_url and string doesn’t work
- Why ids in urls don’t work but slugs do?
- How can I make uploaded images in the editor load with HTTPS?
- password reset link being sent as HTTP?
- Old URL Redirect website after migration
- Check request URL for pattern
- Best way to give site sub-page it’s own domain?
- Dynamically change page title from URL param
- Rewrite WordPress Standard Feed URL – /feed/ to feed.xml
- wp_insert_post – How do I prevent incremental numbers on child pages?
- Getting 404 Hits on URI -/-/-/-/-/-/-/-/-/- . How to deal
- Dynamic URL based on user_metadata
- Check if user is logged in to site A when visiting site B
- Localhost port is missing on some links after downgrading MAMP [closed]
- Why am I seeing all these weird ‘loginid’ requests?
- Network Admin URL is shown to anyone before accessing a blog
- Will get_bloginfo(‘url’) return URL with backslash?
- Linking to pages/posts within the site
- How can I identify which file/function will be used to respond to a particular URL?
- Is there a way to test if a URL is part of the current blog?
- Could not find the wordpress page
- An anchor name (id name) in the address bar
- get_template_directory() returns wrong address on VPS
- Image not showing up in media loader success area – followup
- How do I allow http/ftp access to files I have uploaded?
- Redirecting URL with Twitter Button API Not Working
- Need help changing back the correct wordpress url
- Adding Parent Categories and keep current URLs
- How to get a page url segment on wordpress?
- Different url to same page (with dynamic content)
- WordPress option com_jce should not work
- Too many redirects (ERR_TOO_MANY_REDIRECTS) only on one page
- How to create a user ability to save pages with full url?
- How to bulk Update URLs to new values?
- WordPress Still Requesting Old Url
- Broken Images and Style
- How to generate expiring URL of the page?
- Allow duplicate slugs for pages and posts
- i1.wp.com url problem (Jetpack not installed)
- Change dynamically URL to SEO friendly via .htaccess?
- incorrect url in Snippet editor
- Get userdata from url
- From whence %E2%80%8E at the end of post link
- How to change URL of my pages?
- Modify the WordPress URL
- Force SSL on a single page which is used as iFrame
- Duplicate pages with ?s parameter
- Populate Website URL at registration time
- WordPress Update Links
- How to use query string in URL to display content on the wordpress page
- redirect word-press page with page values
- help me remove this additional parameter in url
- How to echo a dynamic url
- Lost WordPress website access after changing URL [closed]
- How to run Wiki on the same host as WordPress and not get 404 errors when browsing to Wiki?
- What purpose does /embed/ URL have and how to avoid SEO problems?
- esc_url, esc_url_raw or sanitize_url?