WordPress Multisite Subdomain Not Working

If you have encountered a problem about your WordPress Multisite subdomain setup and it didn’t work even though you have followed the instruction thoroughly, the best solution is to submit a ticket your web hosting provider.

But before you do contact your web hosting provider, please make sure you have tried to do the following solution below especially if you are using a web hosting that uses cPanel like Hostgator or BlueHost .

Copy and Replace your .Htaccess with the following code below:
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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

Add the code before /* That’s all, stop editing! Happy blogging. */ in your wp-config.php file.
/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true );
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, true);
define(‘DOMAIN_CURRENT_SITE’, ‘yourdomain.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);

Go to Subdomain and create a wildcard subdomain
To create wild card subdomain, go to subdomain and add *.yourdomain.com. Make sure it is pointed to the folder where you have installed your WordPress Multisite website.

cPanel Bug.
Go to Advanced DNS Editor and delete the record webdisk.yourdomain.com if it exist. This is a cPanel bug which get automatically generated when your create a wildcard subdomain.

Create a folder called blogs.dir

Go to your  wp-contents then create a new folder called blogs.dir if it does not exist and set the file permission to 755.3

How To Not Forgot Your Password Using LastPass

Are you tired losing your password and get frustrated all the time trying to recover it? If you answer is yes, then I would definitely suggest checking out LastPass.

So what is LastPass? Well LastPass is a free password manager tool that help you manage your account username and password by storing the data in they system. It also works on multiple operating system so you won’t need to worry if you are using either Windows or Mac. LastPass is absolutely safe and secure although I wouldn’t use for storing credit card information or password which are very sensitive but that’s just me.

LastPass also allows password sharing which is very convenient especially if you are working with a group of people that require access.
To register for a LastPass, click the image below

Watch Why you need to use LastPass

How To Remove MW:SPAM:SEO Malware

MW:SPAM:SEO is a backdoor link malware that redirect your link to another website.   This is usually located in header.php, index.php and footer.php. To remove  MW:SPAM:SEO malware, you will need to locate a function called dnnViewState() and delete it.

Tip:  Try to sort the date modified so you can check which was recently changed. The file that was changed during the time you did not change anything is the time where your site usually get infected by the malware MW:SPAM:SEO.

Aside from that, you will also need to delete the line which start from <!–start-add-div-content–><p class=”dnn”> to <!–end-add-div-content–>. If this line does not exist, you can skip this step.

If you find this page useful I would appreciate if you would offer a bit of donation to keep this site from running. To donate any amount, click here.