Mobile app version of vmapp.org
Login or Join
Deb1703797

: Problems Enabling SSL for wordpress I have wordpress installed on an Ubuntu web server. I installed wordpress no problem then followed this guide to add https http://www.liberiangeek.net/2014/10/install-wordpress-self-signed-ssl-a

@Deb1703797

Posted in: #Https #Wordpress

I have wordpress installed on an Ubuntu web server. I installed wordpress no problem then followed this guide to add https www.liberiangeek.net/2014/10/install-wordpress-self-signed-ssl-apache2-ubuntu-14-04/
my site loads https for the home page and admin page, but all other pages give me a 404 if i try to load them with https.

Maybe i did something wrong along the way but I'm not sure, I've tried following a few guides, editing my wordpress config file to enable ssl, editing the httpaccess file, editing the 000-default.conf and default-ssl.conf but nothing seems to work, it still kills pages like a categories page or a post.

Im not sure if this has anything to do with it but this is an intranet site, and when I set the dns so it has a domain (actually subdomain) it.name.com basically, but whenever i load the site with the domain name it instantly redirects to the IP address, but still loads. also this is a wordpress multisite and I understand somethings are different.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

Most likely because you have not installed the WordPress .htaccess file as required for search engine friendly urls (permalinks). If your using a VPS or DEDICATED server then you will need to ensure that you have mod_rewrite enabled and configured correctly, if your using shared hosting then the likelihood is that it's already enabled.

Enabling Rewrite


sudo a2enmod rewrite - Installs mod_rewrite
sudo service apache2 restart - Restarts Apache
nano example.conf Edit your SITE conf file
AllowOverride All Change none to all


Creating a WordPress .htaccess file

In the root path of your website create a blank file called .htaccess and fill it with the following WordPress defaults:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme