You are using Cloudfront in front of S3, so in order to mix in 2 sources of content you need to
-
on your blog.mycompany.com – add rewrites of blog/* -> /* so that your blog can handle blog.mycompany.com/blog/ urls well.
-
add new blog.mycompany.com as an Origin in “Origins and Origin Groups” tab.
-
add new “Behavior” for /blog* path pattern and point it to your newly created “blog.mycompany.com” origin.
-
if you get redirects from blog (e.g. WPMU can do that) – hack $_SERVER hostname variable in your wp-config.php and replace it
Related Posts:
- Share WordPress Login Cookies Between Two Subdomain Installs
- Sub domain redirection to taxonomy
- Load template for specific subdomain
- Serve HTTPS requests from subdomain
- Using subdomain m.website.com for mobile theme?
- How can i run the same WordPress install on multiple subdomains?
- Classic Conundrum: How do I map a Sub-Domain in WordPress? [closed]
- General Settings for WordPress Subdomain
- Moving a blog from a subdomain to a folder
- How to retrieve TLD domain for the current website?
- How to serve assets files (js, css, images) on a subdomain
- Moving WP installation form subdomain
- Will WordPress installed on a whole domain interfere with other files in a subdomain or subfolder?
- Network of subdomains [closed]
- Moving website from expired domain to an active subdomain
- Change the subdomain?
- How to redirect specific URL to Subdomain
- Two domain for one site not working in mobile
- Some posts from custom post type to subdomains
- WordPress subdomain mapping/”archiving” [duplicate]
- WordPress CDN Subdomain URL not accessible to the public
- How do I (re)design my corporate website in WordPress without downtime?
- change wordpress upload url to subdomain on xampp local
- Can I have a WordPress site stored on a subdomain of another website owned by me?
- Theme switch when accessed from sub domain
- Subdomains permalinks issues
- Relative Root Url For Sub domain name
- 2 WordPress install with same database
- How to make each category a subsite?
- How to Set up a Wildcard Subdomain for all WordPress Posts?
- WordPress cloned but frontend still displays http://old_wordpress_site
- How to load subdirectory mobile theme and redirect mobile devices to subfolder?
- Subdirectory mapping for a WordPress website
- WordPress deleting subdomain from the URL
- How can I move the subdomain to the root domain?
- Can I edit domain settings if I didn’t create the site?
- Issue while installing wordpress in subdirectory due to SSL [closed]
- Add subdomain for Vue.js application
- Question of the subdomain
- Can I use WP’s built in domain mapping with WP installed on a sub-domain?
- Create a new hyperlink to wordpress blog
- Changing blog domain name
- Single WordPress Installation with Sub domains
- Why is my subdomain returning a 403 status?
- Serve HTTPS requests from subdomain
- WordPress site with subdomain without multisite installation
- I have a question about the name of my blog [closed]
- Hide sub domain created for local CDN
- Change author URL from /author/xyz to a subdomain xyz.domain.com for each new registered users
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- Migrating WordPress site from subdomain to subdirectory
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Multisite, upload images directly to Amazon S3
- 404 when fetching image from wp-content/uploads/
- Transfer Subdomain site to Multisite setup
- Clean URLs for custom $_GET variables
- Change “From” name in MailChimp STS plugin [closed]
- WordPress URL/Folder ReWrite using Htaccess
- Securing my WordPress Files and Directories
- How do I maintain static directories on multisite subdomains?
- Create subdomain masking for each user in WordPress
- PHP/MySQL issues when running WP on EC2 cloud [closed]
- Remove base slug in permalinks of hierarchical custom post type
- Login on Multiple Sub-Domains without Multisite
- WordPress rewrite rules don’t need ^?
- WordPress Multisite Wildcard Subdomains on Plesk
- modrewrite not working on my Apache setup
- WordPress Multisite Question
- Wrong Redirect/Rewrite Rules?
- Redirections and rewrites to subdomain
- Is this the right set of records for Route53 domain to point to a mapped domain in a multisite? [closed]
- Auto login subdomain from main domain on single sites with different DB
- Loading index.php contents which located outside blog folder for post single page
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- Multisite – getting a 404 for additional site created using subdomain install
- Programmatically creating site in a network
- Migrate single site to Multisites with plugins, cPanel and already working subdomains
- How to fix AWS SNS API end point code that cause site not to load?
- Hosting wordpress on Amazon [closed]
- Using Same User Database on Subdomain
- Getting post and attached image from subdomain
- What is the importance of mod_rewrite?
- Modifying WP URL handing code?
- Static directories in a WordPress multisite network
- Pointing route 53 dns to wordpress site in AWS ec2
- Block bad bots with mod_rewrite and save in blacklist
- Multisite network subdomains doesn’t work
- SSL for Mapped Domains with WordPress Multisite on AWS
- Specific plugin script not working on subdomain
- WordPress MU with subdomain
- Pretty permalinks (again)
- Configuring Multisite with subdomains
- WordPress rewrite question
- How do I remove ‘www.’ from all internal links in self-hosted multisite?
- Not being allowed to use some terms in Add New Site in WordPress
- Running WordPress multisite login from a subdomain
- Duplicated WP Multisite for testing environment is redirecting to production site
- Access wordpress blog on subdirectory /blog that is running on subdomain
- Convert all images on S3 to webp format
- Updating failed. The response is not a valid JSON response. on Fedora