permalinks - 404 on internal pages, in all sites in my local server

admin2025-06-05  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

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

Share Improve this question edited Dec 5, 2018 at 11:57 kero 6,3501 gold badge25 silver badges34 bronze badges asked Dec 5, 2018 at 11:36 user761076user761076 1057 bronze badges 4
  • mod_rewrite module is active – user761076 Commented Dec 5, 2018 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 Commented Dec 5, 2018 at 11:59
  • I'll check that, it's a more or less new docker container, so this is possible, I'll check – user761076 Commented Dec 5, 2018 at 12:16
  • @kero yes, that was it, if you want to write an answer I will accept it as valid. Thanx – user761076 Commented Dec 5, 2018 at 12:20
Add a comment  | 

1 Answer 1

Reset to default 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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749127195a316595.html

最新回复(0)