mosaic
By:
mosaic

Running Wordpress Blog Inside A Custom Site

July 17, 2015 1.3k views
WordPress

Hi,

Can anyone see what could be going wrong here.

I have a custom PHP site setup on my droplet - www.domain.com - and i am trying to install wordpress into www.domain.com/blog

I have wordpress installed at www.domain.com/blog however the blog is not showing up correctly because the css, images, scripts are being blocked as those are they are trying to load them from http urls not https urls.

I made basic WP installation, and set the site url with https to database. I also made .htaccess file to try to force to use https, but it didn't help. I also tested by removing domain.com .htaccess file temporarily to see that its not interfering, but it also didn't help.

My best guess at the moment is that this is somehow related to Apache/SSL configuration, and for some reason WP thinks that HTTPS is not in use and is redirecting requests to HTTP while .htaccess is serving those again with HTTPS to WP, and then the loop starts again.

NOTES

  • WordPress https redirect loop
  • Fresh WordPress installation
  • Domain is using SSL
  • WP installed on subfolder
  • WP's home URL and site URL also have https in permalink settings
2 comments
  • When you say..

    I have wordpress installed at www.domain.com/blog however the blog is not showing up correctly because the css, images, scripts are being blocked as those are they are trying to load them from http urls not https urls
    

    ..do you mean that the site loads on https but as certain files are loaded over http, the blog aint showing properly? That means https must be working? Isn't it?

    Also as your main domain.com is working over https so there cannot be any issue traced to Apache/SSL. Yet, to be on the safer side try to enable these mods:

    sudo a2enmod rewrite
    sudo a2enmod ssl
    

    Once this much is confirmed & is working, we can see what else can be checked!

    --
    Regards
    Saurabh

    Servopia.com
    Managed Cloud Hosting For PHP Applications On DigitalOcean IaaS

  • Hi, thanks for your reply.

    This happens if the blog doesn't have .htaccess based redirect for http requests, it doesn't happen when on https as there is redirect loop:

    No, the blog is not loading on https. It's on redirect loop.

    Both modules had already been enabled.

Be the first one to answer this question.