Category: Tech Blog

One wordpress install with two domains pointing to it

There are some wp-config codes you can use to allow any domain to run on your website – but this is a method of adding exactly one specific domain name added on to your site. Multiple domains, one WordPress installation.

Open WP-CONFIG.PHP – and paste this after the line about “table prefix”

$hostname = $_SERVER['SERVER_NAME'];
$hostname = str_replace('http://', '', $hostname);
$hostname = str_replace('https://', '', $hostname);
$hostname = str_replace('www.', '', $hostname);
$hostname = strtolower($hostname);
if(substr($hostname, -1) == '/') {
 $hostname = substr($hostname, 0, -1);
}
if ($hostname == 'pushka.com') {
define('WP_SITEURL', 'https://'.$hostname);
define('WP_HOME', 'https://'.$hostname);
}

Replace “pushka.com” with your website address. This should be the 2nd add on domain (for example, if I wanted the website wordpress.com to appear at the address “pushka.com” also.

About “Envelopery”

I used to use envelopery as an email address and company name (hosting and technology blog) however these have been assimilated into the pushka.com website.

How did the name “Envelopery” come about?

I was sitting in my sister’s room trying to help her think of a unique username for a new gMail account (but as with many other popular services online, all the usernames you would normally think of were taken) – refusing to just add numbers to the end. I was thinking of different ideas, and one thought that came to me, was that eMail is quite like a post office, then thinking “envelope.. envelopery..?” – I was so amused by the word, thinking it was like a new name for a place where envelopes are made – an Envelopery.

Old Website Interface

Free open fonts for web design and graphic design

While watching Google IO 2011, I was surprised why one developer was so excited about Google Webfonts, but now I share his excitement!

The internet really is limited with the selection of fonts… It seems that there are so few fonts that you can expect the different operating systems to all have, and having other fonts embedded into the page seems dirty and perhaps illegal in some cases…

But Google have a huge growing archive of webfonts, that you can use with one line of meta code (and you can download the fonts themselves to use for graphic design), and you can use these open free fonts on your site, works on all browsers, works fast.

A subtle change in fonts on a webpage can really add a new feel to it, and enhance the style of existing websites.

I would love to make a font set one day, maybe it will end up in the Google font archive…