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?
- I’ve mistakenly installed another wordpress in my main domain instead of subdomain
- Migrating WordPress site from subdomain to subdirectory
- How to migrate Subdomains to new hosting?
- How to remove .html from URL?
- How to remove .html from URL?
- How can I use an .htaccess file in Nginx?
- 404 Not Found The requested URL was not found on this server
- .htaccess – how to force “www.” in a generic way?
- How to enable mod_rewrite for Apache 2.2
- htaccess – Redirect to subfolder without changing browser URL
- Emulator for Amazon Kindle
- .htaccess Remove WWW from URL + Directories
- How does RewriteBase work in .htaccess
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Generic htaccess redirect www to non-www
- Apache mod_rewrite Infinite Loop when Accessing WordPress Admin Dashboard
- How to create custom URL routes?
- remove “index.php” from permalinks
- Host the wp-admin on another domain?
- How to upload files straight to S3 without using local storage? [closed]
- How to run WordPress across 2 VMs for high availability
- Masking wp-content/themes/name/images to just images directory using htaccess
- Change permalinks for posts but not for custom post types
- Change author permalink
- Multisite on Windows with wildcard subdomains
- How to share cookies and sessions between domain and subdomain?
- Are nested subdomains possible with a subdomain multisite?
- How to remove dates from existing permalinks?
- Can a multisite’s blogs be accessible from two different sub-domains?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- Making a plugin file accessible via url rewrite?
- How does W3 Total Cache CDN URL rewrites work? [closed]
- How to use alias domain for multisite installation?
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- Blog posts on one subdomain, pages on another
- SSL wildcard issue for wp multisite subdomains
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Wildcard subdomain for the same site
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- Modify featured image path to Amazon S3
- Create multiple subdomains for multi-site from a database
- Two instances of WordPress with different URLs and themes
- WordPress Multisite. Can domain be used instead of subdomain?
- Multisite, upload images directly to Amazon S3
- “.#[random-char-string]” being inserted at end of URLs
- mod_rewrite enabled but Permalinks show index.php
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- Subdomains to pages
- Htaccess for Wordpess set on single subdomain
- How to set up WordPress Multisite on multiple domains without plugin?