Title: The problem with redirection from HTTP to HTTPS
Last modified: September 27, 2019

---

# The problem with redirection from HTTP to HTTPS

 *  [sergeyprogramace](https://wordpress.org/support/users/sergeyprogramace/)
 * (@sergeyprogramace)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/the-problem-with-redirection-from-http-to-https/)
 * When I’m trying to redirect a user from HTTP to HTTPS page he always receives
   the error _‘Your server is running PHP version 5.4.37 but WordPress 5.2.3 requires
   at least 5.6.20.’_.
 * Which is not true because I use PHP version 7.0.33. This version mentioned in
   my admin panel. Can you tell me what’s wrong? Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-problem-with-redirection-from-http-to-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Aashish S](https://wordpress.org/support/users/aksdvp/)
 * (@aksdvp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/the-problem-with-redirection-from-http-to-https/#post-11974818)
 * Hi [@sergeyprogramace](https://wordpress.org/support/users/sergeyprogramace/)
 * It seems the site is working fine when we use https instead of HTTP.
 * I.e [https://program-ace.com/contact-us/](https://program-ace.com/contact-us/)
   link works fine if it is accessed using https and does not work if accessed using
   HTTP.
 * This means at your server PHP 7 is working for SSL port i.e 443 only & not for
   port 80 (HTTP port).
 * So I request you to check this at the server level and either configure PHP 7
   for HTTP port as well. Or in WordPress do force SSL, so that each time your site
   runs as SSL only.
 * However, if in case you require to do any server-level modifications do consult
   with server team once.
 * Hope you get some head start with the above explanation.
 * Thanks.
 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/the-problem-with-redirection-from-http-to-https/#post-11974909)
 * Also, shouldn’t that be PHP 7.2 or higher now?
 * I’m just wondering if that 7.0.X is causing part of the problem and I always 
   think port 80 should always be working ‘just in case’.
 * My guess is it does work at the server level.
 * I do appreciate this topic is I’d not seen a problem exactly like this before
   or never recognized it or knew what caused it. Thanks [@aksdvp](https://wordpress.org/support/users/aksdvp/)
 * I’m still learning!
 *  [scsiraidguru](https://wordpress.org/support/users/scsiraidguru/)
 * (@scsiraidguru)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/the-problem-with-redirection-from-http-to-https/#post-11975371)
 * I do it in the /etc/apache2/sites-available file.
 * I use server alias for www and just the domain back to the Servername.
 *  Redirect permanent / [https://wp.mylibertarianblogpage.com](https://wp.mylibertarianblogpage.com)
 * Redirect makes all traffic to the site https.
 * <VirtualHost *:443>
    ServerName wp.mylibertarianblogpage.com ServerAdmin [mike.mckenney@scsiraidguru.com](https://wordpress.org/support/topic/the-problem-with-redirection-from-http-to-https/mike.mckenney@scsiraidguru.com?output_format=md)
   ServerAlias [http://www.mylibertarianblogpage.com](http://www.mylibertarianblogpage.com)
   mylibertarianblogpage.com DocumentRoot /var/www/wp.mylibertarianblogpage.com/
   public_html
 *  SSLEngine On
    SSLCertificateFile /etc/apache2/ssl/*.crt SSLCertificateKeyFile/
   etc/apache2/ssl/*.key SSLCACertificateFile /etc/apache2/ssl/gd_bundle-g2-g1.crt
 *  ErrorLog /var/log/apache2/wp.mylibertarianblogpage.com/error.log
    CustomLog /
   var/log/apache2/wp.mylibertarianblogpage.com/access.log combined
 *  <Directory /var/www/wp.mylibertarianblogpage.com>
    Options Indexes FollowSymLinks
   AllowOverride All </Directory> </VirtualHost>
 * <VirtualHost *:80>
    ServerName wp.mylibertarianblogpage.com ServerAlias [http://www.mylibertarianblogpage.com](http://www.mylibertarianblogpage.com)
   mylibertarianblogpage.com Redirect permanent / [https://wp.mylibertarianblogpage.com](https://wp.mylibertarianblogpage.com)
   </VirtualHost>
    -  This reply was modified 6 years, 8 months ago by [scsiraidguru](https://wordpress.org/support/users/scsiraidguru/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘The problem with redirection from HTTP to HTTPS’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [scsiraidguru](https://wordpress.org/support/users/scsiraidguru/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/the-problem-with-redirection-from-http-to-https/#post-11975371)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
