admin管理员组文章数量:1130349
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:
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 |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
1 Answer
Reset to default 1This 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.
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:
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 4core 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 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
AllowOverrideis 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
1 Answer
Reset to default 1This 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.
本文标签: permalinks404 on internal pagesin all sites in my local server
版权声明:本文标题:permalinks - 404 on internal pages, in all sites in my local server 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749127168a2319974.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


AllowOverrideis missing, as explained here – kero Commented Dec 5, 2018 at 11:59