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

  • Home
  • SEARCH
  • 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 8244987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:02:36+00:00 2026-06-07T22:02:36+00:00

This is the URL path I currently use: /index.php?pid=211 I want to get the

  • 0

This is the URL path I currently use:

/index.php?pid=211

I want to get the URL path as

/index/211/title of the product 

How to do user friendly URLs in PHP?

And how to get the value of the “title”?

Regards,

  • 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-06-07T22:02:38+00:00Added an answer on June 7, 2026 at 10:02 pm

    In you html code you must write like this:

    <a href='http://www.domain.com/index/211/title-goes-here'>url_text</a>
    

    and in the htaccess file adapt the following:

    Options +SymLinksIfOwnerMatch
    
    RewriteEngine on
    
    RewriteRule ^([a-zA-Z-]+)$ index.php?action=$1 [NC,L]
    
    RewriteRule ^(member)-([0-9-]+)$ index.php?action=member&id=$2 [NC,L]
    
    RewriteRule ^([a-zA-Z-]+)/([a-zA-Z-]+)-([0-9-]+)$ index.php?action=$1&saction=$2&sid=$3 [NC,L]
    
    RewriteRule ^([a-zA-Z-]+)/([0-9-]+)$ index.php?action=$1&id=$2 [NC,L]
    
    RewriteRule ^([0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/(.*).html$ index.php?action=details&id=$1&p1=$2&p2=$3&p3=$4 [NC,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this piece of code: <table style=background-image: url(path/to_image.png)> And when I load it
The docs for django.core.files.File imply I can do this: print File(open(path)).url but the File
I have this URL example.com/photo?people I want to rewrite this URL in the form
I want to send this url from an android class to my servlet. I
I use this project to generate the sitemap path. In my application I would
I am trying to create URLs in PHP and use the path ( $path
Is it possible to use jQuery to find the current url's filename (path) when
I wonder if someone can help me; In PHP you can use fopen(Path) to
Currently I have a route that looks like this: resources :posts I want to
I am currently trying to put together an URL where I specify some GET

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.