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

231
Views
Mask URL with Selectors Apache

I received a request asking to mask an url like this

commercial.com/en/test/page1 to commercial.com/en/test.page1 (as using selectos)

I tried with the next: RewriteRule "^/en/test.page1" "https://${CommercialName}/en/test/page1" [L,P]

In that case this does not work by sendming me the next server message:

Bad Request

Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit.

But if I change my rule to this works: RewriteRule "^/en/test.pagetest" "https://${CommercialName}/en/test/page1" [L,P]

But then I add another rule and it shows me the same

RewriteRule "^/en/test.pagetest" "https://${CommercialName}/en/test/page1" [L,P] RewriteRule "^/en/test.page2test" "https://${CommercialName}/en/test/page2" [L,P]

Do anyone knows why this error is caused?

PS:

  • 1 I already tried to chage P into PT
    1. Apache 2.4
    2. Working with AEM as CMS
    3. I already tried using RewriteCond as RewriteCond "%{REQUEST_URI}" "^/en/test.page2test"
over 4 years ago · Santiago Trujillo
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!