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

301
Views
.htaccess 301 redirect remove category slug (Prestashop)

I'm migrating a website from Prestashop 1.6 to Prestashop 1.7 and I need to add 301 redirects for product pages to htaccess. So the link structure is as follows:

Old website: https://example.com/lang/category-name/product-name.html

New website: https://example.com/lang/product-name.html

The website has around 70 categories in each language. What would be the best way to redirect URLs to the new link structure?

Thanks in advance.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

i can try include in htaccess

RewriteRule ^(.)/(.)$ /$2 [R=301,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!