Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

352
Views
.htaccess rewrite url parameters and keys

I'm at odd on how to use .htaccess to rewrite urls. Can anyone shed some light on the following rewrite please?

original: index.php?param1=value1 desired: index.php/param1/value1

and original: index.php?param2=value2 desired: index.php/param2/value2

param1 and param2 are fixed but their values are different.

On index.php then I'd like to retrieve the parameters with $_[GET]

I'm trying something like this

RewriteCond %{QUERY_STRING} conf=(.+)

RewriteRule ^ /%1/? [R,L](.+)

for the param1 = conf.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The rewrite rule would look something like

RewriteRule ^index.php/([^\/]+)/([^\/]+) /index.php?$1=$2 [L]

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!