Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

202
Vistas
How can I use Apache's mod_rewrite to redirect requests that do not go to the home/index page?

I have two websites. One is a Django App. The other is just a static site.

If someone were to submit https://example.com/more_info

I need to redirect them to https://example.co/more_info

Note the .com vs .co

But if they just request https://example.com then I serve them the index page.

I've unsuccessfully tried the code below in my .htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^(|/)$
Rewriterule (.*) https://example.com/$1
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I think you want to redirect every page to https://example.co other than the home/index page. You can do this by:

RewriteEngine On
RewriteRule (.+) https://example.co/$1 [R=301,L,NE]
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda