I'd like users to have their own easy to access URL when signing up for my service (i.e. domain.com/username). My first thought would be a .htaccess file...but just how big can a htaccess file be? We're talking thousands of users. I'd estimate the htaccess being about 300KB doing this. I could do it easily like that, but there has got to be a better way? I'm familiar with htaccess, but not at its speed.
Sample situation
User signs up under name "rider45"
User is assigned the URL domain.com/rider45
URL domain.com/rider45 needs to really point to something like domain.com/profiles/profile.php?user=rider45
A rewrite rule that said domain.com/$var redirect to /profiles/profile.php?user=$var would work flawlessly. I searched for hours and couldn't figure this out. I see examples of things like it but don't understand exactly how it is working.



Reply With Quote



Bookmarks