i want to re-write url in following manner http://www.domain.com/profile.php?user=username http://www.domain.com/username Code (markup):
RewriteRule ^([A-Za-z0-9]+)(/)?$ profile.php?t=$1 [L] Code (markup): Unfortunately, this will redirect all your www(dot)domain(dot)com/article. This means you have to use www(dot)domain(dot)com/onewordusernames type like urls only for users. My recommendation is to use something like this www(dot)domain(dot)com/user/username RewriteRule ^user/([A-Za-z0-9]+)(/)?$ profile.php?t=$1 [L] Code (markup):