Skip to content

Instantly share code, notes, and snippets.

@cFerg cFerg/.htaccess
Last active Feb 26, 2016

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.