Report this

What is the reason for this report?

SSL and HTTPS:// and HTTP:// URL issues on WordPress Ubuntu 14.04

Posted on March 11, 2015

We’ve been trying to figure out why after installing wordpress within the var/www/html directory on LAMP running ubuntu 14.04 (which is said to be the standard location for the uploaded files), that the SSL enabled site is not registering as one address, but as multiple addresses,(such that after WordPress installation completed from the browser on the https:// address, we’d check the http:// location and it would appear as an "Index of/ page just showing a folder directory icon titled “html”, while the other https address correctly shows the page for a newly installed wp site. ) When WordPress was uninstalled, and then reinstalled from within the browser at the http:// location, the install program appeared within a subdirectory http://domain.com/html/wp-admin/install.php. After completion of the install, the site is shows up only from within the html/ subdirectory location, so if www.domain.com/wp-admin is typed, a “Not found” page shows. Any information would be greatly appreciated.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I enabled HTTP2 after struggling a lot and now internal pages (wordpress) are not working. 404 error.

https://misg.in

Hi,

I have Ubuntu 14.04 and using WordPress multi-site with sub-directory installation. I have installed SSL certificate following the below tutorial.

https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04

Problem is, if I check the home page it is working fine with https:// but if I check any page of the site, it is showing the below 404 error with https://


"Not Found

The requested URL /login/ was not found on this server.

Apache/2.4.7 (Ubuntu) Server at {mysiteurl} Port 443


I even added define(FORCE_SSL_ADMIN, true); in my wp-config,php but of no use. It is showing 404

Please confirm whether any special settings are to be done in WordPress for SSL certificate.

If I am replacing http:// with https:// in my database it is showing “Error establishing database connection” or 404 to every page except home page.

Can you post your site.conf file from /etc/apache2/sites-enabled

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.