WordPress Network and sub-domain setup

This is really a short note but may require some thinking when one run into it… so there you go.

Let me start by saying that I do have strong preference sub domain based WordPress Network instance over sub-folder.
In my opinion it is easier to maintain, and allow to manage stronger security.

Ok, “what is the problem?”, you ask.

Let’s say you have setup your blog as sub-domain to your main site. It may be the same machine or different instance altogether.
You run it for a while and there come time when you decided you want to host second blog and want to share the same WordPress instance.

Multi site support in WordPress is for a while and it is easy to setup and easy to maintain.

For most part that is it – simply follow these steps.

But there is a catch, if you run blog on the sub-domain, network setup wizard would warn you that you cannot enable network using sub-domain.
Not a problem – modify your wp-config.php by adding the following lines

/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
/* Multisite */
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', '<your-domain-name>');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Now you can logoff and log back in and you should be able to create new sit using different sub-domain.

This is not all – what you will most likely run into is inability to use the same users across both sites.

Note: It is important to understand that by using the same names across multiple sites you may slightly reduce your security protection.
So make sure that you are:

  • Keep your Network instance up to date with updates
  • Using Security plugin like iThemes Security
  • Change admin user to something other than “admin”
  • Protect site from brute force attacks

What could happen is that when trying login to second site or switch between sites from Admin panel you would get message that your browser does not support cookies or you will not be able navigate to second site’s Dashboard.

What is the problem? Problem is how WordPress maintains user session using cookies.

To fix it add one more line into your wp-config.php file


Now you should be all set

Posted in Web-design | Tagged , , | Leave a comment

GoDaddy and domain management

If you one lucky user of GoDaddy shared hosting, well… you are in luck…

GoDaddy uses most awkward Control Panel setup on the market when it comes to site setup.

Usual site setup consists of two common tasks:

  • managing site code
  • managing site URL

Usually if one wants to have more than one domain one would make deployment of each site in sub-folder of the root FTP.

Grand idea of GoDaddy is that they want you to have only one site per one domain associated with any hosting package by disallowing association of the top level domain with sub-folder as mentioned above.

Technically you are not prohibited from  acquiring more domains or doing anything else, but you would run into situation that support team would play coy about how to set everything up.
You will be out of luck of trying and escalate issue – “this is how it is done, and you cannot do anything about it”…

Once in a lifetime you may run into support tech who may spill the secret steps:

  1. Start by going to http://gateway.godaddy.com. Select record associated with domain
  2. Click Settings
  3. In popup screen, enter any other domain name than one you would want to use
    This could be considered strange, but do it. Come up with some strange name and give it a go. That is most important step. Complete it all the way and let system simmer for some time between 5 and 30 min to allow DNS changes to propagate.
  4. After applying, you will be back in previous screen and you can click Manage to go to cPanel
  5. Scroll down to Domains and click Addon Domains
  6. Now you can use your real domain and create proper record to point at sub-folder on your FTP – ex: /public_html/my_domain
    where /public_html/ is your root
  7. Save it and let DNS to propagate
  8. Now you should be all set


Posted in Technology | Leave a comment

GreyDragon v.1.2.26 has been released

+ ADMIN: New option – Include “Click to Enter” link for Root Page
+ ADMIN: Small style improvements for styles and menu support
+ CSS: Added theme-<colorpack> class to body element allowing individual styling with 3rd party plugins
+ CSS: Small style improvements
+ Translation support: Added he_IL, th_TH, el_GR, zh_CN language
+ Added support for translation of Home Page Quote
+ Bootstrap CSS updated to 3.3.5

Posted in Piwigo | 2 Comments

GreyDragon 1.2.25 has been published

+ ADMIN: Small style improvements
+ ADMIN: New Main Menu Mode: Static Menu – Header Right
+ Translation support: 46 languages added
+ Bootstrap CSS updated to 3.3.4

Posted in Piwigo | Leave a comment

GDThumb 1.0.17 has been released

+ All language translations are deprecated to allow full reset. en_UK folder now includes full set of translation resources
– Removed duplicate reference to cache build js files

Posted in Piwigo, Technology | Leave a comment

ShareThis v.1.0.4 has been release

version 1.0.4
+ Added en_UK language folder to allow plugin translation
– Fixed extension repository link to allow proper plugin update detection
– Fixed issue when under some conditions plugin parameters are not present on plugin update

Posted in Piwigo, Technology | Leave a comment

ShareThis v 1.0.3 has been released

version 1.0.3
+ ALL: Added better reference for OG: metadata
+ ALL: Photo description extended to include Gallery title and author (if provided)
+ Pinterest: Added Description. Fixed image reference. Improved Pinterest widget integration
+ Tumblr: New option. Experimental

Posted in Piwigo | Leave a comment
  • About

    From being a junior developer all the way to Development Manager position, I was always interested in new technologies. Passionate speaker, IT junky, developer, architect, team lead, and development manager - many hats, one goal - making software better and closer to people’s needs. For the most part I am using my blog as a scratch pad, writing small articles on things which I came across, was asked about more then once, and which would otherwise require additional research again and again.

    View Serguei Dosyukov's profile on LinkedIn
  • Testimonials

    I’m a huge fan of this theme. I’ve got more than 90,000 pictures in my gallery3 running on a Ubuntu...


    The greydragon theme is fantastic. It’s clean, stable and feature rich. It took me a while to decide to move...


    I've been using this [theme] since the start. It is by far the most attractive, feature packed and stable of...



  • Categories