admin管理员组文章数量:1026989
I have a local install of wordpress
home page is accessible at http://localhost/activlist Backend is accessible at http://localhost/activlist/wp-admin etc
No other front end urls are accessible, they return 404
I have refreshed permalinks, and tested apache mod_rewrite is on with this script
Any ideas?
I have a local install of wordpress
home page is accessible at http://localhost/activlist Backend is accessible at http://localhost/activlist/wp-admin etc
No other front end urls are accessible, they return 404
I have refreshed permalinks, and tested apache mod_rewrite is on with this script https://stackoverflow/questions/9021425/how-to-check-if-mod-rewrite-is-enabled-in-php
Any ideas?
Share Improve this question edited May 23, 2017 at 12:40 CommunityBot 1 asked Aug 2, 2015 at 2:45 lindsaymacveanlindsaymacvean 1031 silver badge3 bronze badges 4 |1 Answer
Reset to default 1Assuming you are on Linux, you need to make some changes in apache2.conf file stored in /etc/apache2 directory.
Open the file with root permissions, you will find the code given below in the file.
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Here just change the AllowOverride None
to AllowOverride All
, save the file & restart apache.
This will work in most of the cases.
I have a local install of wordpress
home page is accessible at http://localhost/activlist Backend is accessible at http://localhost/activlist/wp-admin etc
No other front end urls are accessible, they return 404
I have refreshed permalinks, and tested apache mod_rewrite is on with this script
Any ideas?
I have a local install of wordpress
home page is accessible at http://localhost/activlist Backend is accessible at http://localhost/activlist/wp-admin etc
No other front end urls are accessible, they return 404
I have refreshed permalinks, and tested apache mod_rewrite is on with this script https://stackoverflow/questions/9021425/how-to-check-if-mod-rewrite-is-enabled-in-php
Any ideas?
Share Improve this question edited May 23, 2017 at 12:40 CommunityBot 1 asked Aug 2, 2015 at 2:45 lindsaymacveanlindsaymacvean 1031 silver badge3 bronze badges 4-
Have you tried setting a different permalink structure, just to test? Have you checked your
.htaccess
file to ensure that WordPress's rewrite rules are there? Do you still get 404's if permalinks are turned off? – Matt van Andel Commented Aug 2, 2015 at 4:53 - tried every different permalink setting and discovered it works on default localhost/activlist/?p=123 but not on any of the others. It seems to be anytime there is an entry in the custom structure input field then the pages and posts do not work. I have checked the .htaccess in the root directory and it seems to be correct, I can post it here if it helps. – lindsaymacvean Commented Aug 2, 2015 at 11:35
-
The custom structure
/%category%/%postname%/
works fine on the remote server here... http://wuwoclientlindsay.wuwomedia/activelist_demo/activlist_providers/ – lindsaymacvean Commented Aug 2, 2015 at 11:38 - have you checked that you have an .htaccess file in your wordpress root directory? – Mark Kaplun Commented Aug 3, 2015 at 6:02
1 Answer
Reset to default 1Assuming you are on Linux, you need to make some changes in apache2.conf file stored in /etc/apache2 directory.
Open the file with root permissions, you will find the code given below in the file.
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Here just change the AllowOverride None
to AllowOverride All
, save the file & restart apache.
This will work in most of the cases.
本文标签: local installation404 error on all pages but homepage
版权声明:本文标题:local installation - 404 error on all pages but homepage 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745659770a2161816.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
.htaccess
file to ensure that WordPress's rewrite rules are there? Do you still get 404's if permalinks are turned off? – Matt van Andel Commented Aug 2, 2015 at 4:53/%category%/%postname%/
works fine on the remote server here... http://wuwoclientlindsay.wuwomedia/activelist_demo/activlist_providers/ – lindsaymacvean Commented Aug 2, 2015 at 11:38