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

148
Views
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 answers
Answer question

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 Report

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 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!