Some help with mod_rewrite please!

Hey guys,

I am trying to put together some rules for routing URLS on my site.

I have user profiles on my sites that use the URL structure:
http://www.mysite.com/username

which I want to route to something like http://www.mysite.com/user?username=username

However, I first need to check to make sure that it isn’t a page on my site (i.e http://www.mysite.com/contact, etc.)

Any ideas?

why,

Your request is the simple version of the regex development tutorial linked in my signature. The one problem I see is that user will NOT (normally) provide a link to any known script/filetype.

Show us your attempt.

Regards,

DK

I just need help writing the rules. How do I do it so that I check that the request URI is not mysite.com/contact before applying a certain rewrite rule?

Take a look at RewriteCond.