Fix for Broken Permalinks after WordPress Server Move

The Permalink Problem

I recently moved a few WordPress 2.8.x sites from one server to another. Oddly, when clicking on individual blog entries, every one of them threw a 404 after restoring onto the new server. Index page was fine. Admin pages were fine. But any specific blog page was 404’ing. Hmm.

The Permalink Fix

Admin -> Settings -> Permalinks and clicked Default, then back to Month and name. That’s it.

permalink_settings

My Suspicions

I really have no idea, and I don’t have time to investigate. Was it specifically the act of restoring the database (server environment agnostic)? Or was it the other way ’round? Or some other cause?

Tags: , , , ,

How Can I Get More Website Traffic?

Traffic levels are all about content. People ask me about SEO… should they do some SEO basics to their site? Well yea! Do the basics of SEO and promote your site.

I’ve never asked a webmaster if he’s doing everything he can to promote his site and gotten a “yes”.

Real world, online, whatever. If you don’t have your URL in your signature, get it in there! If you don’t hold your website in high regard, nobody else will.

But most importantly, write good content as frequently as possible and users will come. If you can do only one thing do this.

That’s why it’s important to have a site where you can write without noodling with HTML. This is where WordPress comes in, and it’s why I’ve recommended WordPress for probably 19 out of the last 20 websites I’ve consulted on.

Tags: , , ,

Image Upload Problems with WordPress?

Here’s the fix if your WordPress version 2.6 or 2.7 is failing on image uploads with

The uploaded file could not be moved to /var/www/vhosts/domain.com/httpdocs/wp/wp-content/uploads.

Before you read further, please note A) these instructions are for *nix servers (typically Linux), not Windows servers, so ask your host which you have if you don’t know, B) you’ll need to ssh into your server and run command line commands, and C) I have the very macho root access to my Linux/Apache server, so I can run chown commands. Most hosts will disallow you root access, and you’ll simply have to ask your tech support to do this. That shouldn’t be a problem.

Having said that, you want the ownership and permissions to look like this for these three important directories:

wp-content drwxr-xr-x (755)  user group
uploads drwxr-xr-x (755)  apache apache
themes drwxr-xr-x (755) user group

and PHP safe_mode is OFF

Read the rest of this entry » »»»»» »

Tags: , , , , ,

Display Much Information in a Small Space

So I’ve got this popular Volvo web site with about 11,000 registered users. Super. The heart of it is the Volvo Forum, a roiling, boiling mass of Volvo owners trading information, advice and tears at the rate of 75-100 posts per day. The problem is that from the Home page, it doesn’t look so roiling-boiling. Fix: show the activity on the Home page. Get it out in front of people.

Ok, not a hard task. The phpBB forum (outstanding, free software by the way) is on interior pages, and is run entirely by the site’s database. All I needed to do was query a table in the database for the ten or 15 or whatever number of latest posts and voila, the roiling-boiling is then shown to the browsing hoi polloi.

But a) I wanted it up near the top to lure users deeper into my site and b) I didn’t want it to take up much space.

Ingredient #1

After scouting around for some possibilities I found Latest Posts, a script that pulls latest posts from a phpBB forum and displays them in a scrolling marquis.

Not bad. So I used it at the bottom of the Home page. Read the rest of this entry » »»»»» »

Tags: , , , , , ,

WordPress Blogging: Best Practices w/ Formatting

My clients sometimes end up with oddly-formatted blog posts on their WordPress sites. It’s usually because they write in Word, copy, then paste into the WordPress text window. That carries ugly, hidden formatting. To get around this, the WordPress authors created the Paste from Word button.

  • Compose in Word or whatever you enjoy writing in… stay comfortable.
  • Don’t format in Word.
  • Open WordPress, Write a Post, Click “Kitchen Sink” button on the toolbar.
  • Click on “W” icon (Paste from Word) when the second row opens.
  • Format to your liking in WordPress with the toolbar buttons.
WordPress' "Kitchen Sink" button

Clicking the Kitchen Sink button opens the second row.

Voila. Consistent formatting across all your posts.

I’m not a fan of the Kitchen Sink functionality. I want the WordPress authors to just display both rows of the formatting toolbar. The extra space taken up by the second row is too little to warrant hiding the second row of buttons to newbies.

Tags: ,