I have a url like this – http://www.example.com/blog.php/username, it will take you to the username’s blog page, but I want to use a url like this instead – http://www.example.com/blog/username to get to the same file (blog.php). Please what are the steps I need to take to achieve this? Thanks for any help.
I have a url like this – www.example.com/blog.php/username, it will take you to the
Share
Enable mod_rewrite and .htacess. Then add this code in your .htaccess under DOCUMENT_ROOT: