• Resolved mrsawty

    (@mrsawty)


    Hi,

    I’m getting a 404 error on my pages and can’t seem to figure out the permalink issue… I’ve created a .htaccess file and gave write permission to wordpress, but still not working..I get a 404 error on port 80 additionally, I’ve installed SSL and want to force SSL..

    I’m not sure if it is that I closed port 80 when I went to ssl or not?? But here’s the htaccess file, and I appreciate any thoughts on this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
    RewriteCond %{SERVER_PORT} ^80$
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    -Try resetting your custom permalinks back to the default setting and renaming your WordPress .htaccess file. If that works, then try reading Using_Permalinks before setting a custom permalink structure again.

    Thread Starter mrsawty

    (@mrsawty)

    Thanks Tara.

    I’ve been reading through the using permalinks section, and I think I’ve narrowed this down to the htaccess file not being recognized, and that I might need to issue an ‘AllowOveride ALL’ command.

    However, I am not sure exactly what file/location to issue that in, could anyone help with that?

    Best
    Matt

    Thread Starter mrsawty

    (@mrsawty)

    Found it:

    etc/apache2/apache2.conf

    <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
    </Directory>

    (change the word None to All here…

    Moderator t-p

    (@t-p)

    Glad you got it sorted ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalink/ .htaaccess problem’ is closed to new replies.