Username URLs just like Twitter

August 14th, 2009 § 0

In your .htaccess just do this:

  1. RewriteEngine on
  2. RewriteRule ^([A-za-z0-9]+)/?$ user.php?name=$1

This will ignore php files, and any files that are requested deeper into the site like JS or CSS.

Sphere: Related Content

Where Am I?

You are currently browsing entries tagged with za at Matt Bernier.