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

332
Vistas
Redirect url to specific port not working in htaccess

I am working on 2 servers and .htaccess file working on 1 server but not working on second server.

.htaccess file

RewriteEngine On
RewriteRule ^socket.io/(.*)$ ws://example.com:3000/socket.io/?$1  [P,QSA,L]

I am working on socket, so i dont want to show :port in url, so i just redirect url to port within htaccess

Url examples server 1,

ws://example.com/socket.io/etc Redirect ON ws://example.com:3000/socket.io/etc (working)

http://example.com/socket.io/etc Redirect ON ws://example.com:3000/socket.io/etc (working)

But on server 2, same code on different domain return "Internal Server Error"

I dont want to change my code, because it is my backup server, so i want to run same code, but what i am missing? Is there any apache extension required or what i am missing?

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