Subdomain not working after SSL

https://vex.dog

I just enabled my free SSL and since enabling my subdomain (https://vex.dog/) isn’t working, I made the php redirect the user to the normal domain if it doesn’t see a .png.jpg extension at the end of the url, now all I get is a white screen.

Note: the subdomain would redirect me to my regular domain before SSL was enabled.

Subdomain is: https://img.vex.dog

Working for me

image

Likely due to this

image

2 Likes

Https://vex.dog works fine, https://img.vex.dog not redirecting to main page

You could use htaccess rules to redirect or you could use PHP to redirect users back to your main subdomain.

3 Likes

That’s exactly what I’ve done, was all working fine before I added the SSL certificates

All done through php. The purpose of my subdomain is to allow you to view images as long as you have a .png on the end of the URL, if not it will direct you to my main page.

https://img.vex.dog/gPz9w2Zqy9.png

This code worked before SSL was added, note I’ve added the “https://” it used to be just “http://”

Ty for help I fixed it anyways :smiley:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.