Flush Your Internal DNS

Featured

Seems like everyone I speak to, looking to check updates to their website after making changes or taking a new site live, needs to flush their DNS.  The majority of those people turn to Google and run through a few searches/clicks before they find what they need.

So, here are the commands for both Windows Command Prompt and Apple’s Terminal.

I am assuming if you are looking for these steps, you have the knowledge to get to these programs. Also, for any Linux users out there… if you are running a Linux distro, you should already know how to do this. Why are you even reading this post?

Apple

dscacheutil -flushcache

Windows

ipconfig /flushdns

Making Apache Case Insensitive

Featured

Wondering how to make URLs case insensitive in Apache?  I was too.  Below are a few simple steps and code (that worked for me) when needing to accomplish this task.  The code listed can be added to your .htaccess file.

1.  Create a rewrite map called lc.  ’lc’ would be defined using an internal ‘tolower’ map.

2.  A rewrite conditional rule would be used so that only URLs containing upper case characters are rewritten and processed.

3.  The actual rewrite rule is defined using the lc rewrite to modify the requested/captured URL to lower case before initiating a 301 redirect for the user.

So if we were to code it out, it would look something like this:

RewriteEngine On
RewriteMap  lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

4.  Then add the code to your .htaccess.  Make sure to remove any 301s in case you need to do some troubleshooting.

All in all, character case would not matter if we implemented this system because we are stating we only want lower case URLs.  Anything other than that would be rewritten and redirected.  Now remember, doing this will also cause all links to be processed.  Meaning your links will all be redirected.  This is a fault in the logic.

And that’s it.  No more character case issues on Apache.

*I take no responsibility for you fucking up your site/server/SEO.  Enter this at your own risk.  If you get the five-oh-oh… you know something is wrong.  Try, try again.

WordCamp Louisville 2011 has a New Sponsor

Featured

I am happy to announce WordCamp, being held in Louisville Kentucky, has a new sponsor.  WebMedley.com will be an official sponsor of this ‘WordPress geek gathering.’  The conference will be held on October 1st and through the weekend.  You can read more about the event and what to expect here.

Bill Rice, a new addition to the WebMedley Team, will also be speaking as a panelist at the event.  If anything, you should definitely attend to hear his thoughts on WordPress.  You can read more about Bill here.