How does website like friendster turn their dynamic profile into static url? Do they use htaccess or is there any special method in php?
From what you're talking about, sounds like htaccess.. I assume you mean www.friendster.com/username ?
there is a PHP method of doing it... for a few methods check this: http://www.sitepoint.com/article/search-engine-friendly-urls/
yes. what if we had 10 000 members? How do we rewrite the profile page into unique username? Add 10 000 rewrite line?
I wouldn't use htaccess in particular if you have too many visitors, it'll cause you heavier apache loads. I would suggest you use PHP like Grit recommended. Peace,
you could easily use htaccess for this... changing something like:abcd.com/user.php?username=USERNAME to abcd.com/USERNAME I'm not 100% sure, but this should work: Options +FollowSymLinks RewriteEngine on RewriteRule (.*)/$ /user.php?$1=$2