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

154
Views
htaccess doesn't work with included ampersand

I need to pass additional get variable, but it doesnt work with the ampersand. Any ideas what im doing wrong? (last line)

First 3 lines work just fine.

RewriteRule ^forums forum.php [NC,L]
RewriteRule ^fc/([0-9]+) forum.php?fc=$1 [NC,L]
RewriteRule ^ft/([0-9]+) forum.php?ft=$1 [NC,L]
RewriteRule ^ft/([0-9]+)/(0-9]+) forum.php?ft=$1&e=$2 [NC,L]
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Have your htaccess in following manner. You could reduce from 4 rules to 3 rules. You need to place anchors in regex to avoid false positive matches while uri matches in Rules.

Please make sure you are clearing your browser cache before testing your URLs.

RewriteEngine ON
RewriteRule ^ft/([0-9]+)/([0-9]+)/?$ forum.php?ft=$1&e=$2 [NC,QSA,L]
RewriteRule ^(fc|ft)/([0-9]+)/?$ forum.php?$1=$2 [NC,QSA,L]
RewriteRule ^forums/?$ forum.php [NC,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!