Want to know if it is possible to get different URL paths to redirect to a single php file which i can pull the name from the URL.
i.e. If i have http://www.example.com/username or http://www.example.com/username2 or http://www.example.com/username3
I want it to redirect to a username.php file which then i can get the username from the URL and load the information from the database.
If not does anyone have any ideas on how i can do something similar. tumblr do something similar as u can just type in a user-name in the url and it loads their blog.
Yes of course it’s possible thanks to URL rewriting! Check out Apache mod rewrite.
For your information, a rewrite rule like you want may look like:
I’m pretty sure this will work. Just activate the mod_rewrite in your server.