Birnam Designs is a quality web design and development agency in Virginia

Archive for the 'htaccess / mod_rewrite' Category

Testing Dreamweaver templates

Sunday, February 25th, 2007

I don’t know why I didn’t think of this before.

Dreamweaver templates use the .dwt extension, which means that if you try viewing them through a browser you just see it as text, or it will try to download the file. This means that developing Dreamweaver projects means either creating the original file as a .html file and converting that to a dwt down the road, or creating an .html file that uses the template, and keep updating it. Both options are just a little more work than I think should be required.

I’m running apache, but the principle is the same (albeit slightly different steps) in IIS. I’m also running this on my local computer so I have quick access to httpd.conf, which is apache’s configuration file. On a shared server, I believe this would also work by adding it to a .htaccess file.

It’s easy, just add this line to your apache config file — httpd.conf

AddType text/html .dwt

And that’s it! Restart apache and reload the page. Apache will now describe the file as a text/html file in the header, and your browser will render it as such.

Feedburner, Wordpress 2.0, and mod_rewrite - Oh My!

Wednesday, January 18th, 2006

Wordpress 2.0 was released a couple of weeks ago with much huzzah, and once again the Wordpress team has managed to make their software even simpler and even more powerful to install and use than ever before. I don’t know how they pull it off. It took me, literally, about 25 minutes to learn that 2.0 was released, download the new version, read about the installation, update my old Wordpress installation, and reinstall all of the plugins I was using with 1.5 — all without a single hiccup. I was ecstatic!

A few days after the upgrade, I noticed a problem with my Feedburner statistics. They weren’t coming in anymore. I looked a little closer and realized that a very fundamental change had occurred in the way that Wordpress read URLs.

(more…)