Skip to content

Instantly share code, notes, and snippets.

@cFerg
Last active February 26, 2016 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cFerg/5a0afa06264b480078be to your computer and use it in GitHub Desktop.
Save cFerg/5a0afa06264b480078be to your computer and use it in GitHub Desktop.
Member Minimizer
Options +FollowSymlinks
RewriteEngine on
#List all users
RewriteRule ^get/([.*]{0,0})$ get/index.php?Member=E1 [NC]
#Invalid Username - too short
RewriteRule ^get/([A-Za-z0-9_]{1,2})$ get/index.php?Member=E2 [NC]
#Valid Username
RewriteRule ^get/([A-Za-z0-9_]{3,16})$ get/index.php?Member=$1 [NC]
RewriteRule ^get/([A-Za-z0-9_]{3,16})/([^/]+)$ get/index.php?Member=$1/$2 [NC]
#Invalid Username - too long
RewriteRule ^get/([A-Za-z0-9_]{17,})$ get/index.php?Member=E2 [NC]
@cFerg
Copy link
Author

cFerg commented Jun 27, 2015

had to remove symbol fallback error check - was messing up these rules ... might remove 17 or more check, so i can have a subsection of the member page like /about /settings ...though, I technically don't have to change the url, to be able to do that - we'll see...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment