Basic .htaccess Username switch


/ Published in: Apache
Save to your folder(s)

Rewrites "www.site.com/xyz" to "index.php?who=xyz"


Copy this code and paste it in your HTML
  1. RewriteEngine on
  2. RewriteRule ^([^/.]+)$ index.php?who=$1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.