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
  • 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
Add a comment  | 

1 Answer 1

Reset to default 1

Assuming 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
Add a comment  | 

1 Answer 1

Reset to default 1

Assuming 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