• bardicwarrior

    (@bardicwarrior)


    Hello,

    I’m running my WordPress site on my Raspberry Pi and have installed Letsencrypt to secure it. Only the main page shows up clean and pretty with https running smoothly. When I navigate to any other page it returns a 404 error, “The requested URL /[url]/ was not found on this server”. The pages still function when using http, but not https.

    This is with using Post Name permalinks, when I change the permalinks back to Post ID all the pages show up with https. I’ve tried a few options on the .htaccess file so you’ll see a lot of item commented out.

    #<IfModule mod_rewrite.c>
    # RewriteEngine On
    # RewriteCond %{SERVER_PORT} !443
    # RewriteRule ^(/(.*))?$ https://%{HTTP_HOST}/$1 [R=301,L]
    #
    # RewriteEngine On
    # RewriteBase /
    #
    # RewriteCond %{HTTPS} off [OR]
    # RewriteCond %{HTTP_HOST} ^www\. [NC]
    # RewriteRule ^ https://example.com%{REQUEST_URI} [R=301,L]
    #  RewriteEngine On
    #  RewriteBase /
    #  RewriteRule ^index\.php$ - [L]
    #  RewriteCond %{REQUEST_FILENAME} !-f
    #  RewriteCond %{REQUEST_FILENAME} !-d
    #  RewriteRule . /index.php [L]
    #</IfModule>
    
    # 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
  • The topic ‘WordPress, Raspberry Pi, and Lets Encrypt – main page works, other return 404’ is closed to new replies.