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

135
Vistas
.htaccess redirect domain.com/folder to external website without URL change

All used URLs are examples.
My goals is to:

  1. Redirect mydomain.com/demo?psswd=demo to a external domain like demo.platform.com/80201bf0-c857?psswd=demo
  2. The redirect would only redirect the mydomain.com/demo folder, not the main website.
  3. Without changing the original URL displayed to the user.

I can get step 1 and 2 to work, but not step 3.

What does work:
Placed an .htaccess file in the mydomain.com/demo folder.

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_URI} ^/demo
RewriteRule ^(.*)$ https://demo.platform.com/80201bf0-c857 [L]



I tried to change the [L] to [P] or [P,L] so that the URL wouldn't change, but then the redirect doesn't work anymore and I get a error (page not found)

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_URI} ^/demo
RewriteRule ^(.*)$ https://demo.platform.com/80201bf0-c857 [P,L]



a. Is that what I want possible?
b. What do I need to change in the .htaccess file?

over 4 years ago · Santiago Trujillo
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