Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6613009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:09:58+00:00 2026-05-25T20:09:58+00:00

http://abc.com/test/batch/profile/anyname In the above url anyname varies depending upon the selected link. I have

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:09:59+00:00Added an answer on May 25, 2026 at 8:09 pm

    Put this in your .htaccess:

    Options +FollowSymlinks
    RewriteEngine On
    
    RewriteRule ^profile/([a-z0-9]+)$ friend.php?username=$1 [NC,L]
    

    This allows that people access the following url on your site:

    http://www.yoursite.com/profile/abc

    http://www.yoursite.com/profile/abc123

    http://www.yoursite.com/profile/123

    However, 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 .htaccess would have to be adjusted accordingly. I just assumed that you’d be using the root of http://www.yoursite.com/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am given a page url like 'http://abc.com/test.php?a=1&b=2&c=3' . Now I have been told
My goal is to have the url routing as following: http://www.abc.com/this-is-peter-page http://www.abc.com/this-is-john-page What is
I have a domain name abc.mydomain.com This is a https URL ( http redirects
I have webservices at the following link: http://abc.com/asmx I have made the request to
I have two XELEMENTS XR and XTemp . MY XR Contains : <result xmlns=http://abc.com/test>
What happens if a URL link is like this http://abc.com/123.php?p=1?source=yahoo&key=56 can 123.php retrieve all
I have the following: rule = http://www.abc.com/ test = http://www.abc.com/test print(str(re.compile(rule).match(test))) I want this
How to create UIImageView with image from a link like this http://img.abc.com/noPhoto4530.gif ?
http://www.validome.org/xml/validate/?lang=en&viewSourceCode=1&url=http://45143.com/finance-feed/abc.xml&onlyWellFormed=1 check the url above for validator results. Line 171 in the XSD is
http://webdesigncom.net/_sites/jsw/Judge At the link above I have a 600px div box next to each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.