htaccess rewrite rules to remove multiple subfolders from a URL
问题 Due file system sub-directory constraints I will most likely reach I want to separate the /users folder into /users/a/username , /users/b/username , /users/c/username , etc. So the data on the server for a user would be in: www.domain.com/users/a/username/ , www.domain.com/users/b/username /, etc I want the URL to be: www.domain.com/users/username/ Optionally to avoid duplicate content a 301 redirect from www.domain.com/users/a/username/ to www.domain.com/users/username/ would also be good.