Why Prefer Subdirectory WordPress Multisite

I use to get a lot of (at least) impressions for a keyword television on this blog. So I decided that I would rather make subdomains for this category and I created WordPress multisite with multiple subdomains including tv.tipscow.com, etc. With this setup, however, the impressions came down so there was no way for me to improve the conversion rate but changing from subdomains to subdirectory WordPress Multisite seems to be working!

Also, while building the backlinks, i realized that subdomains were not being given much importance and only the main domain’s backlinks were working for the organic search.

So, I changed the URL structure from subdomains to subdirectory of this WordPress Multisite. Now, I don’t have to worry about backlinking different domains. Alone, tipscow.com would help me build the rapport. I wrote the article steps for changing Multisite WordPress blog from subdomains to subdirectory.

I would be glad to discuss if you have any other point of views.

Steps to change WordPress Multisite from Subdomain to Subdirectory

I decided to change the multisite’s URL structure from subdomain.domain.com/ to domain.com/subdomain/ because of the reason I explained in Why prefer multisite with subdirectory url structure over subdomains post for WordPress Multisite.

I searched over internet and what I found on internet was very close to what I was trying. So I am writing this post to list out step by step what precisely worked for my site while changing the multisite WordPress from subdomain to subdirectory structure.

Steps: WordPress Multisite from Subdomain to Subdirectory

  1. Before doing any changes, do take a backup described on the official WordPress site: Backup WordPress Database
  2. Now, take backup of the files you are going to modify e.g. .htaccess
  3. Now, open your .htaccess file from the root directory of your WordPress install and replace the code between “# BEGIN WordPress” & “# END WordPress”. There are instructions for updating code based on your WordPress version but it was really very confusing for me. So I tried different options and the code below worked for me.

    # 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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

  4. Ensure that you set redirects at subdomains level to not lose on any traffic. Use the following code to setup the redirects just above “# BEGIN WordPress” that you updated in the previous step. I have copied the exact code from my wp-config for your understanding. Note that tipscow.com is the main domain and subdomains are tv, fashion, storage, mobile, mechanical & travelogue. Use the exact code below and only change your domain and subdomain names. The back slashes and quotes are important and that what made it work.


    # Subdomains
    RewriteCond %{HTTP_HOST} ^tv.tipscow.com$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/tv\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^fashion.tipscow.com$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/fashion\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^storage.tipscow.com$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/storage\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^mobile.tipscow.com$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/mobile\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^mechanical.tipscow.com$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/mechanical\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^travelogue.tipscow.com$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/travelogue\/$1" [R=301,L]

  5. If there are not many subsites, you can simply goto http://yourdomain.com/wp-admin/network/sites.php and edit the paths from “/” to particular “subdomains”.
    change subsites structure from subdomain to subdirectory

  6. If you have many subsites, you can update them using phpMyAdmin from your cPanel.

If you run into any issues, restore the backup and try again. If there are still any problems, discuss them here and I would be glad to help you.

Windows 8 Problems & Drawbacks

I have been using Microsoft Windows 8 for quite sometime now. While I spoke about the goodness of Windows 8 in my posts What’s new in Windows 8 & Windows 8 Reviews, here I come with my views about Microsoft Windows 8 problems or UI Issues. Mainly the issues are with respect to the user interface so far also can be called as the usability issues. As far as functionality is concerned it is working great even on my Windows Vista PC bought in the year 2008.

Microsoft Windows 8 Problems

Shutdown Restart Accessibility

The ShutDown / Restart button is far off. You need to navigate a lot. You need to follow 4 steps to actually shut down using the User Interface. A quick option is to go to the desktop and press CTRL + F4 and then choose from the options (typical Windows shutdown prompt).

Step1 to shutdown

Step2 to shutdown

Step3 to shutdown

Step4 to shutdown

Of course you can create a shortcut on the desktop to enable you to shutdown, restart, hibernate, lock the screen of your Windows 8 without actually navigating too much.

Right-click on your classic desktop, go to New/Shortcut and type in one of the following commands:

Shutdown: shutdown.exe –s –t 00
Restart: shutdown.exe –r –t 00
Hibernate: rundll32.exe PowrProf.dll,SetSuspendState
Sleep: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Lock: Rundll32.exe User32.dll,LockWorkStation

To enable a shutdown timer to shutdown after certain period of time, read more at Schedule Windows Computer Shutdown

Name them the way you want and choose icon for each of them from the library. Put them in the folder “%appdata%\microsoft\windows\Start Menu\Programs\” and you should be able to search / find them on your start screen!

The first Screen after login

The default screen that you see is the Start Screen when you sign in. It is true that you would want to open some applications like Internet Explorer or Windows Explorer when you login. However, the tiles that are seen by default are of social media, photos, messages, emails, etc. I always go to the desktop first then open my fav browser from the task bar. Microsoft should track the most used apps and bring them to the start screen so that it is easily accessible and doesn’t any horizontal scrolling.

Misguiding Tiles on Start Menu

The People’s tile, shows the pictures of your friends. Sometimes you see a new picture of a close friend and click on that part of the tile where the picture is appearing “thinking” that it will take you to the friend’s profile directly. However, in reality, it opens the application. This is in a way misguiding user unless the user is really aware of it already. And when you are aware of this fact that it will not take you to your friend’s profile directly, you refrain from clicking on that tile! Yes. It has happened with me quite a lot of times. A picture appeals me to click on it but since I know that I would be taken to the default app not the friend in particular, I avoid clicking it. It is like you are seeing an entrance to a “specific” room, but you hit with a glass door when you actually try to cross the entrance.

Annoying Side Bar Menu

When you are trying to close a window (e.g. a browser), you move your cursor towards the close button on the top right corner. However, when you click, it actually shows up the right opaque bar that contains some quick buttons. Although these buttons are kept on this hover effect to make it easy for users to quickly reach, for example, the settings; it is also a hurdle when you are closing a window. You have to ensure that you dont actually touch the corner to avoid that annoying popup.

closing window in win8 problem

No direct Close Button

You have no close (X) button to close a certain app. You have to have fair knowledge of computer shortcuts like ALT + F4 Keys to close the app.

no close button for windows 8 app win8 problem

[Resolved] Not a valid feed template – WordPress Error

So, I opened up my webmaster tools to find out that some pages were giving 404 error. The error was showing like this: “ERROR: sort is not a valid feed template.”. I banged head for an hour on this before I actually fixed the issue.

Wherever there was a keyword XML in my URL, it gave this error. For example, for the url, http://tipscow.com/how-to-include-xsl-in-xml/ showed the error: ERROR: how-to-include-xsl-in is not a valid feed template. Note that xml keyword is not mentioned in the error. So anything before XML is included in the error.

Another URL giving me problem was: http://tipscow.com/sort-xml-attribute-using-xslt/. For this as you can guess the error said: ERROR: sort is not a valid feed template.. So clearly anything before xml was in the error. I am still figuring out what caused this problem.

Solution for Not a valid feed template

Options like putting dataxml or xmlfile will also not work. The reason is that it has xml again. So, I finally settled the issue with updating the post URL to http://tipscow.com/include-xsl-in-x-ml/ (The thing that helps is “xml” keyword not in the URL.

For the other URL, it was fixed with: http://tipscow.com/sort-x-ml-attribute-using-xslt/

Don’t forget to

When you finally sort the error and fix it (especially if a URL change is involved, don’t forget to set a redirect to the correct URL from the old URL. Otherwise you might just loose the traffic. I use simple 301 redirects plugin it is very very simple and easy to use.