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

149
Vistas
Redirect request to http and https both

Hy,

I want to redirect http request to https only when ssl is not expired and if ssl expired then keep request in http.

How can I do this?

I have api in my laravel project.

Need anymore information let me know.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

RewriteEngine On

Add below code in your .htaccess file after rewrite engine on

RewriteCond %{HTTPS}  != on 
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] 
over 4 years ago · Santiago Trujillo Denunciar

0

You can use a cron job to auto renew the certification (in case of Let's encrypt )

Forget to use complex rule to verify the validaty of SSL certification

they are a lot of article , about configure redirection from Http tp Https

https://linuxize.com/post/redirect-http-to-https-in-apache/

https://www.tecmint.com/redirect-http-to-https-on-apache/

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