Last active
February 26, 2016 08:35
-
-
Save cFerg/5a0afa06264b480078be to your computer and use it in GitHub Desktop.
Member Minimizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...