http://abc.com/test/batch/profile/anyname
In the above url anyname varies depending upon the selected link.
I have to redirect the above url to friend.php and I should pass anyname as parameter to that file
How can I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put this in your
.htaccess:This allows that people access the following url on your site:
http://www.yoursite.com/profile/abchttp://www.yoursite.com/profile/abc123http://www.yoursite.com/profile/123However, any other characters than alphanumerics will not qualify for the rewrite above.
Edit:If you actually will be keeping the
http://www.yoursite.com/test/batch/-url, the.htaccesswould have to be adjusted accordingly. I just assumed that you’d be using the root ofhttp://www.yoursite.com/.