CoursePress Pro, Virtual Pages & HTTPS

After installing a SSL certificate to I discovered that the Virtual Pages were not displaying, instead ther were returning a 404 Page Not Found error.

I investigated and found a number of other support threads where this issue had been raised but no solution was available in any of these threads:

I did a quick investigation and have been able to find the issue. In coursepress/coursepress.php line 5296 needs to be changed as follows:

$full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

Change to:

$full_url = ( is_ssl() ) ? "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" : "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

Could you please look to implement this change in the next release? Thank you.

  • Nithin
    • Support Wizard

    Hi David,

    Hope you are doing good today. :slight_smile:

    Great!! Glad to know you have figured a workaround for this, it seems to work. I’ll definitely let the developer know regarding this, thank you for sharing. Sending some points on your way.

    Have a nice weekend ahead. :slight_smile:

    Kind Regards,


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.