I want to change URL like below:
http://localhost/register/profile.php?user_id=23
to:
http://localhost/register/username
I want to change URL like below:
to:
|
||||
|
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
Consider a user of id 23 and username "foo". The easiest is to rewrite /register/23/foo to /register/profile.php?user_id=23 as such:
But if you can change profile.php to rely on
|
|||
|
You have to enable mod_rewrite. The internet is full of example an tutorials for that. One example: http://www.sitepoint.com/guide-url-rewriting/ |
|||
|