Reputation: 8836
In my page a user profile can be accessed for example by domain.com/profile.php?id=1 or name=admin
My question is how to rewrite this and can be successfuly accessed by domain.com/admin ?
Upvotes: 0
Views: 122
Reputation: 50974
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+) profile.php?name=$1 [L]
Upvotes: 1