How To Use WordPress as a Content Management System

Monday, 20th February 2006

I recently deleted all my html files from my web site. I created WordPress pages instead. I find its easier to edit my pages with the WordPress 2.0 built in WYWISWG html editor rather than editing it with Dreamweaver and uploading the html files to my web server.

WordPress uses Apache’s mod_rewrite functionality to create pages. There are 2 types of pages as I call it. There are blog posts and pages. WordPress pages are not part of the blog archives. I customize the “permalink” of the blog posts to end with a “.html” filename. The cool thing is WordPress doesn’t actually creatre a real html file, it is simply telling the Apache web server that anytime someone requests for a html file, redirect that request to a php file that pulls data from the database. Too bad I haven’t found a way to create html files with the WordPress pages. I can do it with the blog posts by changing the “permalink” options.

How to create “page sections” and pages in WordPress?

Try clicking on any of my “About Me” section pages and you will see that it looks like there are files in the “/about/” folder. I did this by first creating a WordPress page with the page slug “about” and set my other pages to link to this “about” page as its page parent. That’s all!

What do I do about my existing HTML files?

I had 1 major concern when I was removing my html files. What if someone clicks on a link in the search engines for one of my html pages? Wouldn’t that bring them to a broken page on my site?

301 RedirectNo worries! Simply use the Apache’s “301 redirect” to redirect my html pages to my new WordPress pages. WordPress uses the “.htaccess” file in the same folder as your WordPress installation to handle these redirect requests. Check out the screenshot on the left. Simply add the 301 redirect code below the existing WordPress code in the “.htaccess” file and its done!

Categories: Blog Updates, Blogging, Search Engine Optimization, Web Development | You can leave a comment, or trackback from your own site.

Similar Posts

Did You Enjoy This Post?

Subscribe to my blog through my RSS feed or email to receive updates on more posts like this. post on your favourite social networking or media site to let others know about this post. Help me generate more buzz by voting for this post with the following vote buttons.

3 Comments On “How To Use WordPress as a Content Management System”

On 22nd February 2006 8:27 PM, DaveNo Gravatar said:

I too use wordpress for most my sites and find it is the best solution. The templates can be easily created, lots of features, and generally once the site is set up its nice and easy to keep maintained :)

Keep up the great work on this blog, its a regular read of mine.

Dave

On 24th February 2006 7:17 AM, kevinNo Gravatar said:

Hi, I would like to hear more about your adventure with pay per click advertising. Are you making sales on a daily basis? Are your campaigns still profitable? Those are things that interest me.

On 5th May 2006 4:08 PM, lvv - seoNo Gravatar said:

There’s another way, Vincent, which is even better than 301 redirects.

1. Create pages (not posts).
2. Change the slug to the same slug as the old page.

Bingo. The page without 301 redirects. Cheers.

Post a Comment

Name:
(Required)

E-mail:
(Required)

URL:

Comments: