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
- 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?
- How do you retrieve a post by slug name through REST API?
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Unwanted media library URLs in posts?
- How to remove file versions from the file source links in wp_head?
- Add menu and submenu in admin with a URL instead of slug?
- Update media file url in wordpress media library
- Dynamic URL generates dynamic content
- Pages redirected to attachment post
- Best way of removing emoji support from url / slug only
- Password protected page Hash url
- How do I override the emoji url?
- Site broken after using URL Change in Admin
- Custom Post type permalink structure with custom_post_id
- Is there a way to create a URL (new WP page) that can only be accessed from a specific source?
- Setting a url for a page
- pass user id in slug and get user information
- What is the correct way to convert the absolute path of the executing script to a URL, in WordPress?
- 404 error when passing “cat” parameter to URL
- disable site_url redirect in wp-login.php
- Is it possible to configure WordPress’s Core Files to accept duplicate Child Categories?
- how to trace a file by the route url
- Is get_permalink also the canonical URL?
- Remove trailing slash from previous_posts_link()
- Block direct url enter
- Moved WP into new folder. How to fix image links in posts?
- Using esc_url_raw with protocols properly
- How to parse a custom url (within WP site) and obtain params passed to that URL
- wordpress copyright dynamic
- Multiple duplicate URL’s
- Dynamic URL and pass the data to an iframe
- Unnecessary url
- How to close tab automatically if URL has specific word? [closed]
- Finding URI in Child Theme
- Make custom system url
- Sanitizing URL in a WordPress plugin
- How to display translated content with custom slug?
- How to get a page url segment on wordpress?
- How to create a user ability to save pages with full url?
- How to bulk Update URLs to new values?
- Add more than one query parameter onto wordpress url
- WordPress Website change directory
- Allow duplicate slugs for pages and posts
- Change dynamically URL to SEO friendly via .htaccess?
- Get userdata from url
- How to make url variable?
- WordPress dynamic subpage for ACF
- Previewing/Updating some Pages causes “The requested URL was rejected” Error
- From whence %E2%80%8E at the end of post link
- WordPress Address (URL) Reverts back
- How to pass REQUEST_URI to function
- Protocol relative url not pulling up images on IE, FF, and OPERA
- wordpress url with format .com/category/sub-category
- URL Forwarding – wordpress links reverting back
- Get gallery url (Nextgen) [closed]
- How to use query string in URL to display content on the wordpress page
- Multisite subdirectory blogs missing slash
- Function to get custom post image URL
- How to echo a dynamic url
- WordPress rewrites my link with custom URL scheme to http(s)
- Show page name after home url
- how to add param string after website url in wordpress?
- Are the wp entries in these URL’s legitimate?
- url ends in “/embed”
- How to hide ids from URL [closed]