WordPress multisite file not found issue

Issue with WordPress multisite as i have main site which is&nbsp;<code><a href="http://example.com" target="_blank">http://example.com</a></code>&nbsp;and other is&nbsp;<code><a href="http://example.com/subsite" target="_blank">http://example.com/subsite</a></code>.

Issue with WordPress multisite as i have main site which is http://example.com and other is http://example.com/subsite.

Issues :

1) When i click on one of menu item which is named test and its from http://example.com/subsiteits showing file not found.

2) When i'm login and click on menu item named test it opens that page perfectly but when i edit that page to go admin panel on that page it says file not found

Note (test page is password protected)

3) From Admin panel i visit subsite which is http://example.com/subsite then it shows admin panel of that site but its weird and also without loading css and not loading properly.

My config.php file is as below

<?php

define('WP_ALLOW_MULTISITE', true);

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'XXX');

/** MySQL database username */
define('DB_USER', 'XXX');

/** MySQL database password */
define('DB_PASSWORD', 'XXX');

/** MySQL hostname */
define('DB_HOST', 'XXX');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+

  • Authentication Unique Keys and Salts.
  • Change these to different unique phrases!
  • You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  • You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
  • @since 2.6.0
    /
    define('AUTH_KEY', XXX);
    define('SECURE_AUTH_KEY',XXX);
    define('LOGGED_IN_KEY',XXX);
    define('NONCE_KEY', XXX);
    define('AUTH_SALT', XXX);
    define('SECURE_AUTH_SALT', XXX);
    define('LOGGED_IN_SALT', XXX);
    define('NONCE_SALT', XXX);
    /**#@-
    /

/**

  • WordPress Database Table prefix.
  • You can have multiple installations in one database if you give each
  • a unique prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = 'XXX';

/**

  • For developers: WordPress debugging mode.
  • Change this to true to enable the display of notices during development.
  • It is strongly recommended that plugin and theme developers use WP_DEBUG
  • in their development environments.
  • For information on other constants that can be used for debugging,
  • visit the Codex.
  • @link https://codex.wordpress.org/Debugging_in_WordPress
    */
    define('WP_DEBUG', false);

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'mydomain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(FILE) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

My .htaccess file

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

uploaded files

RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

add a trailing slash to /wp-admin

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.
.php)$ $2 [L]
RewriteRule . index.php [L]

END WordPress


Pros and Cons of WordPress

Pros and Cons of WordPress

WordPress has become the world's most simplified website management & blogging system. Bloggers initially preferred WordPress for its ease of uploading content, but over the last few years, even...

WordPress has become the world's most simplified website management & blogging system. Bloggers initially preferred WordPress for its ease of uploading content, but over the last few years, even complex business apps are now seen on WordPress.

Make Your WordPress Blog Mobile Accessible

Make Your WordPress Blog Mobile Accessible

Trying to increase the audience for a WordPress blog? Well, one sole solution to this arduous task is exploiting mobile technology. Over the past years, this technology has outgrown as a necessary part of us. It is often a sight to find someone...

Trying to increase the audience for a WordPress blog?

Well, one sole solution to this arduous task is exploiting mobile technology. Over the past years, this technology has outgrown as a necessary part of us. It is often a sight to find someone indulged in these small-screen devices.

Today, we can get everything on mobile phones that was only accessible via desktops. Ranging from communication to playing games, to exploring apps, to completing purchases, everything is being done smoothly via smartphones. The eruption of 4G and 5G networks have given a spark to such trends.

Almost 70 percent of people hold a smartphone and keep it handy to do perform multiple activities. And, reading articles or blogs or other stuff is also being done on these devices.

Now, if you have successfully developed a website with the help of a WordPress developer, you must focus on bringing the traffic. Undoubtedly, there are multiple ways in which you can fetch traffic. But, mobile phones remain the best and easy to capture the audience for your business offerings.

How to make a WordPress blog site mobile accessible?

No doubt, smartphones hold their existence several years ago. Still, many businesses tend to ignore their prowess when it comes to increasing audience and business revenues. However, it should not be the actual scenario.

If you own a WordPress site, it is crucial to make it undergo a mobile-friendliness test. Having to mention, Google Test is amongst the most reliable ones that provide you great insights into a website status on mobile-friendliness.

Considering mobile-friendliness for your website needs to be the most important task for the site owners. And, how such mobile-friendliness can be achieved, is listed below in pointers. Let’s begin!

  • Choose a mobile-friendly theme

Themes play a pivotal role in making a WordPress store mobile-friendly. Always seek for one that holds all the necessary elements that contribute towards your aim.

Talking about WordPress, it offers a huge range of free and premium themes that come with rich functionalities built on contemporary technologies. Divi, Uncode, etc. are some best-known mobile-friendly WordPress themes available. Also, you can think of customized themes tailored to specific needs.

  • Explore AMPs (Accelerated Mobile Pages)

AMPs or Accelerated Mobile Pages help your web pages to load as quickly as possible on mobile platforms. These significantly help you to enhance the user experience along with Google’s search engine rankings for your respective website.

  • AMP HTML- for custom HTML tags,

  • AMP Styling- develop a deploy-ready website,

  • and, AMP JavaScript- helps to replace existing JS for easy and fast loading websites.

These three are the main components on which the overall structure of these pages depends. With AMPs, you also don’t need to alter the primary code structure to achieve higher performance occurrences.

  • Minimize unnecessary elements

Mobile devices come with smaller screen sizes in comparison to desktops or tablets. Therefore, we can display the same web content on mobile phones. And, if we try to do that, the UX will hamper and no user will like an overcrowded page of the website.

Therefore, try to eliminate unnecessary elements like content, visuals, etc. that is not much important as other essentials.

Taking whole things into consideration, preparing a WordPress site for the mobile world is not a simple task. It involves a lot of concentration, preparation, and technical involvement to an extent. Therefore, try to imply all together for great success in your endeavors.

Docker & WordPress - WordPress Containerization With Docker

Docker & WordPress - WordPress Containerization With Docker

Setting up a local WordPress installation involves multiple steps and sometimes can be very cumbersome. Usually you need to setup a local web server (w.g. Apache), configure the server to be able to execute PHP code, and setup a MySQL database....

Setting up a local WordPress installation involves multiple steps and sometimes can be very cumbersome. Usually you need to setup a local web server (w.g. Apache), configure the server to be able to execute PHP code, and setup a MySQL database. Of course you can use pre-build bundles like MAMP for MacOS or XAMPP for Windows to get all those components on your system. However the most easiest way to setup a local WordPress environment is to use containerization with Docker.

In this tutorial you'll learn how to make use of Docker Images, Containers and Services to setup a complete local WordPress environment. This environment can then be used for testing, programming, or training purposes. E.g. you can use that testing environment to setup a copy of your production WordPress site and test any critical updates of WordPress itself, plugins etc.

Dockerizing a Node.js web application

Deploying a python-django application using docker

Getting started with Docker Compose

Deploying a Node 12 Function to Cloud Run

Docker for front-end developers

Kubernetes Tutorial: How to deploy Gitea using the Google Kubernetes Engine

An Introduction to Kubernetes: Pods, Nodes, Containers, and Clusters

10 docker-compose and docker commands that are useful for active development