WordPress Multisite Domain Mapping Not Working - php

I have https://wordpress.org/plugins/wordpress-mu-domain-mapping/ running on my build and it was working great, but I had to switch my primary site - point / to another site ID - and now my custom domain is just directing to the main site.
I'm not sure what I can include here for reference but if anything has any idea and needs more information, just let me know and I'll get it for you.

My mistake: I installed an SSL certificate that was directing all traffic to the specific domain.

Related

Can I catch a rewritten domain name in php and do stuff with it?

I have a WordPress website that is hosted using NGINX. I do not have any root access. Their system allows me to point multiple domains to one WordPress site. When you visit the 2nd domain, their hosting rewrites it to the primary domain name. I am unfamiliar with NGINX, but I am assuming it is similar to an Apache rewrite rule.
The only thing I have permission to do is create a custom plugin and install it. So I can use PHP or WordPress' own actions. But I would like to catch when the original request comes through using the 2nd domain so that I can then do stuff.
Is there a way to do that?
Thank you.

wordpress multisite installation with existing live domains

OK, this may be silly, but, I haven't found an answer yet. I have a client that wants to take 14 existing live domains and convert them to WordPress. Sounds like WP multisite would be perfect. They all will have the same look and feel and pages for the most part.
But, my question, where do I install it? I don't want to use any of the existing domains as they are live. Do I just make up a master domain, like example.com, and use Plesk's IP default domain to preview?
Any suggestions?
if your sites data is related to each other you can use one wordpress installation on example.com and develop it to support all.
else you can convert each site to wordpress and place each one in a separate directory
for example : example.com/site1 , example.com/site2 ...
then do permanent redirect for each one to it's directory like bellow:
site1.com permanent redirect to example.com/site1
site2.com permanent redirect to example.com/site2
.
.

GAE - Wordpress Admin Login Through Custom Domain?

I'm trying to set up a Wordpress Multisite network on Google App Engine. I have the install up and running, and am mapping custom domains for each site with the help of this plugin. I'm using Wordpress 4.0.
The domain mapping works, in that when I navigate to the custom domain it pulls up the corresponding site, but when I try to access any admin pages from the custom domain, I get an SSL error. I gather that this is due to Google's not allowing custom domains to access GAE apps via SSL, and so I've been trying to fix this by redirecting all requests of the form mycustomdomain.com/wp-admin/(.+) to myapp.appspot.com/wp-admin/\1.
My rationale for trying this is that myapp.appspot.com/subsite/wp-admin/ works just fine, but mycustomdomain/wp-admin does not, despite the two pointing to the same location.
Unfortunately, I haven't been able to figure out how to do this redirection properly. I've tried adding redirect rules to the .htaccess file with no success. I've also tried messing with app.yaml handlers, but this, too, yielded no results.
Also worth noting is that I attempted to force all requests to go through http (as a hackish, temporary workaround) via this plugin to no avail.
I'm new to working with servers, and any help would be much appreciated. I'm not even sure that redirection is the right solution, so I welcome any other suggestions. I can supply pertinent code if needed. Thanks.
EDIT: I could go through Google's custom domain registration process via Google Apps and get an SSL certificate that way, but my app will eventually be used by a large number of independent sites that I don't control, so that solution won't work.
I have been trying to achieve something similar on a regular server and not on GAE, so I'm not sure this will apply to you...
Isn't the 4th option of the Domain Mapping what you're looking for? In the WP network administration, go to Settings > Domain Mapping, then you can tick/untick the 4th option :
4. Redirect administration pages to site's original domain (remote login disabled if this redirect is disabled)
This will allow you to use a custom domain to access a site and its wp-admin interface, allowing SSL certificates to validate since the domain stays the same.

How can I change change links to point to custom domain on Azure Webites

I bought a custom domain from godaddy and made a wordpress blog with Azure Websites. Everything worked fine, my custom domain name is working but I have a small problem.
Let's say that my custom domain name is "azuresite". Well, I have the domain "azuresite.com", but when I go to the website and I click on a link (let's say the about page), it goes to azuresite.azurewebsites.com/about instead of going to azuresite.com/about
Do you have any idea what should I do to make the links point to my custom domain instead of the azurewebsites domain?
Here are two screenshots that may help you to better understand the problem:
GoDaddy Zone file: http://prntscr.com/2ida3c
Screenshot of my website: http://prntscr.com/2idaqg
It turns out that I just had to go to wordpress settings and change my site address from mydomain.azurewebsites.net to mydomain.com. Here's a screenshot:
http://prntscr.com/2kjwzp

Can I run both my wordpress website and non-wordpress website on same domain?

I build a client website and business system using html+php+mysql and both runs on same domain.
Recently, I feel like it would be better to separate the website and use wordpress so that the client can update their own contents instead of me doing this everytime they need to change something.
As, my client is in low budget, I was thinking whether it would be possible to run both the wordpress and business solution on same domain. If I run the business solution under sub-domain will it solve the issue or wordpress’s front controller will pickup any request related to that domain?
Is it possible at all? My suggestion would be appreciated.
many thanks,
Mahbub
It's absolutely possible, yes. And there are many scenarios you can use depending on what you want to do:
Subdomains — install everything in different subdomains, or install one thing at the root and the others in different subdomains. The subdomains normally just map into directories on the same account, so you use the same FTP credentials and so on to transfer files.
Directories — like http://www.example.com/blog. Very easy to deploy a blog this way, and just put your other stuff in the root.
Intermingling — you can actually put files (.php, .html, etc.) in the same directory as WordPress, just as long as there are no name conflicts. The default redirection rules in .htaccess will ensure that those files will get served as usual without interfering with WordPress.
Not knowing anything about your code, if it's simple enough another approach would be to create custom page templates in WordPress that invoke your code. The nice thing about this is that your pages will always have the same look and feel as the other pages in the blog, i.e. if you change/update the theme. This may or may not matter to you.
Its possible. We have implemented it for multiple sites in the following ways
Elgg as Master
FluxBB / PhpBB for forum
Wordpress for blogs
You can then share the sessions between these systems. Just process your login/ registration through only one system.
Sure, you can set the wordpress site in for example: http://blog.example.com and the website in http://www.example.com without any problem. Just need to setup that in the web server.
I did it by putting the wordpress blog in a separate directory inside the large domain. wordpress do not interfere with other php sites on the same domain.
Yes, it's possible.
We'd used Drupal for main website, ELGG for social networking, PHPBB3 for forums and Wordpress for blogging on the same domain name. We did it by using different subdomains for each site.

Categories