0

I have a local Apache server, with module rewrite loaded, all my Wordpress files in this server fail to find internal pages whenever permalinks options are set to something different than simple.

Setting permalinks options to anything different or saving changes to force .htaccess to refresh, as many answers suggest, is not working in this case.

.htaccess has 777 file permissions.

This is the list of loaded modules in Apache:

core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php7 mod_reqtimeout mod_rewrite mod_setenvif mod_status mod_xsendfile

  • mod_rewrite module is active – user761076 Dec 5 '18 at 11:44
  • 1
    Is this a new problem or has this always been the case since you set up the apache? Could be that your .htaccess is not loaded because AllowOverride is missing, as explained here – kero Dec 5 '18 at 11:59
  • I'll check that, it's a more or less new docker container, so this is possible, I'll check – user761076 Dec 5 '18 at 12:16
  • @kero yes, that was it, if you want to write an answer I will accept it as valid. Thanx – user761076 Dec 5 '18 at 12:20
1

This can be related to your overall Apache configuration and have nothing to do with WordPress itself. By default, Apache will not load any custom .htaccess files, you need to set AllowOverride for the given directory like so

<Directory /path/to/site>
     AllowOverride FileInfo

     # etc
</Directory>

FileInfo should suffice, if not, try All and check the official documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.