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

Tagged: , , , , ,

§ Leave a Reply

What's this?

You are currently reading Username URLs just like Twitter at Matt Bernier.

meta