General Settings for WordPress Subdomain
After changing the WordPress URL to blog.denschool.com, edit your .htaccess file. If there is a line reading RewriteBase /blog, change it to RewriteBase /
After changing the WordPress URL to blog.denschool.com, edit your .htaccess file. If there is a line reading RewriteBase /blog, change it to RewriteBase /
Change your name-servers with wordpress.com name-servers. Before Upgrading – Important Notes WordPress.com automatically removes the “www” from all URLs. Mapping the “www” subdomain is not supported. Also, they do not currently allow mapping to subdirectories, such as example.com/blog. Instructions for Mapping Subdomains Add a CNAME record through the registrar where you purchased your domain or … Read more
WP multisite (subdomain) is the answer – http://codex.wordpress.org/Create_A_Network In addition you can install the WP Domain Mapping Plugin to run on other domains You need to decide whether you want WP multisite subdomain or sub-directory installation. WP subdomain does exactly what you want, but WP subdir + domain mapping plugin allows you to have both … Read more
You can have a subdomain, but you cannot detect mobile users reliably. And you shouldn’t. How to use a subdomain with the same content In your wp-config.php, look at $_SERVER[‘HTTP_HOST’]. If it matches m.example.com, enforce the current domain as main domain with … const DOMAIN_CURRENT_SITE = ‘m.example.com’; … and filter the active theme: add_filter( ‘stylesheet’, … Read more
will WordPress be aware that it is called via HTTPS and change all links on the pages to HTTPS ? While WordPress knows if a request comes via HTTPS, it doesn’t change all the links automatically. Only certain links are updated to use https:// that too, without any subdomain part. Any hardcoded links would remain … Read more
Without more detail about the kind of template you’d be serving up, the best I can advise is that you can use the ‘template_redirect’ hook to override the entire Template Hierarchy. A more delicate way to do this would be by using on of the more specific filters. Each of the conditional get_*_template() functions in … Read more
Today, I’ve posted a working solution for exactly the same problem. You can see it here: How to share WordPress session and cookies between domain and subdomain?. I use this method on several of my own websites.
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” … Read more