[Solved] How to do this: example.com/users/user1 [closed]


You need somthing like this? Not clear what is your requirement. Check this blog for more

Rewriting example.com/user.php?username=xyz to example.com/xyz

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1

Refer htaccess2 tricks

solved How to do this: example.com/users/user1 [closed]