How to use username url in php !!
I want to do like this
when requesting page
http://localhost/profile/superrcoder
it has to show profile page of superrcoder
example, in facebook, https://www.facebook.com/facebook shows facebook fan page
I dont hava any idea to implement it!
I’m using XAMPP in windows.
The simple way is to use a rewrite rule for Apache and parse it with PHP.
You have to enable mod_rewrite for your XAMPP installation.
Create .htaccess in the root of your localhost with the following content:
Now, in the index.php as the last rewrite rule refers to, you should be able to do something like:
The array dumped by PHP sould give you an idea.