Fork me on GitHub

Updates from November, 2008 Toggle Comment Threads | Keyboard Shortcuts

  • britg 9:32 am on November 27, 2008 Permalink | Log in to leave a Comment  

    WordPress MU Stubornly Forces No WWW Subdomains – Huh? And How To Fix It. 

    Let me preface by saying that I very much prefer the look and simplicity of naked domains – i.e. http://example.com vs http://www.example.com – and everything I do I try to use naked domains.

    The devs working on WordPress Multi-User, or MU, have similar thoughts on the no-www domain preference, but do they kindly make their case with suggestions and education? No, they ram the no-www mantra down your throat, hardcoding multiple and irreversible blocks of code in the setup and load scripts that expressly forbid a user from ever using a www. subdomain! Their reasoning for this seamingly arbitrary dictation? I can’t seem to find one that isn’t based on their own personal preferences.

    For the most part, the MU community seems to agree with this decision as a sound one! Wow, does anyone else see a major lapse in judgement here? Here’s an abbreviated forum thread on the subject, names removed to protect the innocent:

    Smart Person: WordPress MU forcess no-www. This is a huge mistake!

    Person 1: Set up your server to forward www to non-www, everything will be ok

    Smart Person: No, it won’t. Why should I change my entire site structure to accomodate this arbitrary decision?

    Person: Do redirects and xml sitemaps so that google re-indexes your site with no www.

    Smart Person: You’re missing the point! I want a subdomain!

    Person: So install MU on a subdomain like ‘blogs.example.com’

    Smart Person: *sigh* ok, how about this subdomain – ‘www.example.com’!?

    It just seems so silly to me that they have an unfounded, non-technical bias against ‘www’ as a subdomain. They support any other subdomain except for ‘www’!

    A hack to fix this on install

    Warning: This is definitely just a ‘hack’ and will most likely break on upgrade! And unfortunately, I was unable to revers the no-www effects after a complete installation, this has to be done before a fresh install.

    This is for version 2.6.

    In index-install.php make the following changes:

    # comment out lines 238, 239:
    	//if( substr( $_SERVER[ 'HTTP_HOST' ], 0, 4 ) == 'www.' )
    		//$hostname = str_replace( "www.", "", $_SERVER[ 'HTTP_HOST' ] );
    
    # comment out lines 365, 366:
    	//if( substr( $domain, 0, 4 ) == 'www.' )
    		//$domain = substr( $domain, 4 );
    
    # comment out lines 475-482:
    		/*
    		if( substr( $_POST[ 'basedomain' ], 0, 4 ) == 'www.' ) {
    			printheader();
    			nowww();
    			continue;
    		}
    		*/
    # comment out line 489:
    		//$_SERVER[ 'HTTP_HOST' ] = str_replace( 'www.', '', $_SERVER[ 'HTTP_HOST' ] );

    In wpmu-settings.php make the following changes:

    # comment out lines 9, 10:
    //if( substr( $domain, 0, 4 ) == 'www.' )
    	//$domain = substr( $domain, 4 );
     
  • britg 8:44 am on November 19, 2008 Permalink | Log in to leave a Comment  

    Wake and Bake with Google Reader 

    Anyone else ‘hitting the j’ the first thing in the morning, also?  Ahahaha sometimes I just crack myself up.  But  no seriously – my google reader feed list has gotten so large and updates so often that I have to speed through them to stay current. I don’t think I even read by 2 or 3 of the articles on a given day but I read enough headlines to get a good overall feel for what’s going on. Maybe that’s a good thing?

    So how do I attack my feeds? Well, I’ve set google reader to default to the ‘All Feeds’ page, so I open up the reader and just start ‘hitting the j’ (‘j’ is the hotkey for next item) – get it, eh? I barely get done reading the headline of the feed before I hit ‘j’ again keeping a rapid clip through usually 500-800 articles in the morning.  Then I’ll attack it again a few times throughout the day.

    I only stop and read if the title pops out at me – or, and I can’t help it, but it’s true – I see a picture that pops out. I wasn’t one of those kids that just skimmed through books only looking at the pictures, but hey I guess that’s a lesson if you want people to read your feed.  Either come up with a damn good title or include an eye catching picture of some sort.

    So who’s with me waking and baking with google reader in the morning?

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel