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

104
Views
htaccess con dos índices para locales

Estoy usando Reactjs del lado del cliente, y tengo dos índices index.html e indexAR.html Lo estoy haciendo para SEO para cada idioma hacer un índice.

Ejemplo de URL: ejemplo.com/ar/{páginas}

Ejemplo de URL: ejemplo.com/en/{páginas}

entonces necesito decirle al servidor HTTP si find ar en URL devuelve indexAR.html si algo más devuelve index.html

 #.htaccess Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.html?path=$1 [NC,L,QSA]
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Haga que su archivo de reglas htaccess se registre de la siguiente manera. asegúrese de que su archivo de reglas htaccess esté presente junto con las carpetas ar , en (no dentro de ellas, además de ellas).

Asegúrese de borrar la memoria caché de su navegador antes de probar sus URL.

 RewriteEngine ON Options -Indexes RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ar indexAR.html [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/?$ index.html?path=$1 [NC,L,QSA]
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!