404 Error
-
Hi, I have an installation of WordPress 4.1.1 on a WAMP server, Apache/2.4.9 (Win64) PHP/5.5.12
This particular installation has custom post types on it that we set up with the TYPES plugin. When I first set up the site, only the “home” page worked, but looking at previous forums I was able to make the following changes to the Apache settings:
1. removed the hashtag from #LoadModule rewrite_module modules/mod_rewrite.so
2. Changed AllowOverride None to AllowOverride All, and restarted WAMP
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
3. Flushed the permalinks
4. Went to the Apache modules, and checked the “rewrite_module” to be “on”.
At this point, and in my mind, strangely, I am actually able to get the custom post types to come up, but not the ordinary pages or file structures. For example, if I click on our custom post-type news-events, I get this:
https://localhost/scratchsite1/news-events/how-can-we-help-when-you-when-you-are-feeling-stressed/
…and the content and all the images appear
but if I click on our ordinary “about” page, I get this: https://localhost/about
and I get this error message
Not Found
404 Not Found
The requested URL /about was not found on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80.The only other literature I have found is changing the “FollowSymLinks” from:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
to:
<Directory />
Options FollowSymLinks
AllowOverride FileInfo Options
Order deny,allow
Deny from all
</Directory>
My httpd.conf file is not quite an exact match to above, I have the following in my httpd.conf file:
Options Indexes FollowSymLinks#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit…and what I’ve tried to do is to add the words, “AllowOverride All” right after the FollowSymLinks portion, before the hashtag.
The sites break every time.
The .htaccess file on my local host matches the one on my scratch site, which is not on local host, and the settings on both sites are on “Pretty Permalinks” after being flushed from default. The scratch site on my self-hosted domain works fine, the one on local host doesn’t, so I’m sure I’ve done something wrong in setting up the Apache server.
I would welcome any insights you have to offer. Thank you so much.
- The topic ‘404 Error’ is closed to new replies.