Can you please help me to setup htaccess

by 1 replies
2
Hi warriors I need your help in fixing htaccess.
I want to redirect
/member/Mr.love.htm to
/profile.php?userID=1
As you know Mr.love is username of userID 1.
Means I need username in url.
Please help.
#programming #htaccess #setup
  • I don't know how to redirect "/member/Mr.love.htm" to "/profile.php?userID=1" but I do know how to parse "Mr.love" ot "profile.php" then you can query userID from database

    You must to create rewrite rule like this

    Then in profile.php you can get value from $_GET['userID'] and do whatever you want.

    Have a nice day.
    • [ 1 ] Thanks

Next Topics on Trending Feed