multisite – Is Polylang faster than WPML?

I want to speed up my multi-langual website, and currently, I’m using WPML. Is it true that with Polylang my site will load much faster than with WPML?

Also, I’m thinking about migrating my site to multi-site to improve performance. What do you think, which solution will be the best option?

Multisite: menus can’t be added in child sites

It seems that we cannot add menus in child sites in multisite. Did anyone face this issue before?

I have the Menu container enabled in my functions.php

register_nav_menus(
    array(
        'primary-menu' => __( 'Primary Menu' ),
        'secondary-menu' => __( 'Secondary Menu' )
    )
);

I can add menus to the parent site. But I can’t do it in the child sites even though I can see the Menu container and the Create Menu button.

No menu is created when the Create Menu button is clicked. WordPress just refreshed the page and the menu I tried to create is not present at all.

I have inspected the database of my child site and I can’t find any row for nav_menu_item.

Any ideas?

EDIT:

I also found out that I cannot add any category or tag in my child sites. Why??

wp query – Multisite – how to stop rewriting and redirecting to wrong locations?

How can I stop my wordpress multisite from rewriting my URLs from:

/news/?paged=20

to

/news/page/20/

I have this set up in my functions.php

function add_query_vars_filter( $vars ) {
  $vars() = 'paged'; // variable for pagination.
  $vars() = 'p'; // variable page for pagination.
  return $vars;
}
add_filter('query_vars', 'add_query_vars_filter');

And I have no ideas why WordPress keeps rewriting my URLs.

Sometimes, it just redirects to:

/en/hello-world/

That is completely wrong!

Any ideas?

WordPress Multisite Attachment Show In Media URL How Can I Remove

I moved my website to WordPress Multisite. But when I made a post and used the images in that post and linked the images with the attachment. Then Showing Attachment In Url

Cat Transparent PNG Images

This Site My Site Url I Want To Remove attachment From Url

WordPress multisite non-www URL redirects to mainsite. www version of url is okay and comes to subsite homepage. Why?

So I just made a subsite today and everything was okay until I noticed:

If I type the URL of the subsite without the www part, it redirects to the main site.

Does anyone know why is that?

Before I made the subsite some months ago I did set up somewhere in some plugin or some file (I don’t remember) www as my main domin and all the non www urls were redirected to www version on the mainsite.

Now I created the subsite and this is what happens. I type in example.com/subsite and it sends me to www.example.com

If I type www.example.com/subsite, then it sends me to www.example.com/subsite…

Anyone has an idea why this is?

I also have a Really Simple SSL activated on both sites individually, not network active. I tried changing it to network active but no help..

htaccess – WordPress multisite non-www URL redirects to mainsite. www version of url is okay and comes to subsite homepage. Why?

So I just made a subsite today and everything was okay until I noticed:

If I type the URL of the subsite without the www part, it redirects to the main site.

Does anyone know why is that?

Before I made the subsite some months ago I did set up somewhere in some plugin or some file (I don’t remember) www as my main domin and all the non www urls were redirected to www version on the mainsite.

Now I created the subsite and this is what happens. I type in example.com/subsite and it sends me to www.example.com

If I type www.example.com/subsite, then it sends me to www.example.com/subsite…

Anyone has an idea why this is?

I also have a Really Simple SSL activated on both sites individually, not network active. I tried changing it to network active but no help..

wordpress – Migrating multisite subsite to a subdirectory WHILE it’s content is stored in S3 bucket! Is this hard to do?

So I have installed wordpress multisite in the root directory. Created the main site and a subsite.

Images a and content are stored in an S3 bucket.

Now once I decide to migrate the subsite somewhere else or in a subdirectory, would that mess up my images urls?

How to avoid that from happening?

7 – How do I set up HTTPS on a multi-site?

Alright .. solution time. Found a solution.. took me a little while to understand.
(I, um, guess there’s more than one way to skin a cat.. and more than one way to do multi site. This is a solution that works with my particular setup)

So the first step is to set up a virtual host (Once again I’m using Ubuntu.. version 14.04 if you wanna know.. although I’d bet the overall steps would work for any other distribution even if the details were slightly different)

So I set up a virtual host as described here: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

So for like, domain1.com on my multisite instillation, my virtual host file looked like this, more or less

<VirtualHost *:80>
    ServerAdmin myemail@gmail.com
    ServerName domain1.com
    ServerAlias www.domain1.com
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

My DocumentRoot is exactly the same as my drupal base instillation
Also, my DNS doesn’t use www so .. I’m not sure if I really needed that ailas but I had it

Then.. for this domain.. I had to use LetsEncrypt and got a free certificate as described here: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04

(And I had to open port 443 to traffic on my server too .. I was using AWS and they use a thing called “security groups” so I added port 443 to the server’s security group on the admin panel)

And then.. bingo! My site in my multisite setup can use https now. I expect I would have to simply just repeat the steps for any other sub-site that I want to use https for. I feel like there would be a way to use some kind of like… multi domain certificate.. for like, every site.. somehow …
But this way is free and doesn’t take too long!

Woocommerce logout not working – WordPress multisite?

We have a multisite setup for our network but there is issue when trying to logout from woocommerce my-account page in any of the subsite in a multisite network, it redirects to the following page which can be seen in attached image:

Something went wrong

And when I click logout from the above page, it again redirects me to the my-account page.

wp-config.php

define('ADMIN_COOKIE_PATH', '/'); 
define('COOKIEPATH', '');  
define('SITECOOKIEPATH', ''); 
define('COOKIE_DOMAIN', false);

Also tried this:

define('COOKIEPATH', '/');  
define('SITECOOKIEPATH', '/'); 

but it didn’t worked. How can this be fixed ?