• Resolved dcowens76

    (@dcowens76)


    I am running WordPress 4.4.1 on an Apache 2.4.7 server on a Digital Ocean droplet running Ubuntu 14.04. I set the server up myself, and I am guessing my problem is there.

    1. I set up permalinks using WordPress, using the postname option.

    2. I manually added the following to www/html/.htaccess (WordPress did not add this automatically):

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

    3. I checked that mod_rewrite was enabled on the server.

    4. I added the following to my site conf file:

    <Directory />
            Options FollowSymLinks
            AllowOverride All
        </Directory>
        <Directory /home/[user]/www/html>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
        </Directory>

    5. I cleared my browser cache and disabled all plugins.

    I realize this question has been asked many times and the WordPress Codex has a page of instructions that I have followed, but nothing I have found works.

    Any ideas on what I am missing?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi khajee,
    Here you have a check list:

    A/—- Apache configuration file: httpd.conf
    (->> usually something like /etc/httpd/conf/httpd.conf)

    A.1. Check out that this line is uncommented:
    LoadModule rewrite_module libexec/apache24/mod_rewrite.so

    A.2. Check the Directory section related to the folder where WP is hosted. It should looks like this:
    <Directory “/var/www/http/whateveryouhave/wordpressdir”>
    Options FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>

    B/—– File .htaccess at “/var/www/httpd/whateveryouhave/wordpressdir”
    With the above configuration you shouldn’t change it. WP default file worked for me.

    C/—– Restart the web service httpd.

    Hope it helps.

    Hi,

    I am also getting the same error and trying all those steps.

    when I am changing the permalinks(default to post name) it will immediately changing the server error 500.
    Can any one help me

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘404 error on Permalinks’ is closed to new replies.