Permalinks set to 'Post name' returning 404 errors on WP page nested in website
-
Hi,
Setting permalinks to ‘Post name’ is causing several 404 errors. Here’s the context:
-The ‘News’ section of my website (abugovkaspar.com) is a nested WP page with multiple blog posts (WP 4.5.3 running ‘National Basic’ theme).
-404 errors occur upon opening blog posts; front ‘News’ page seems to be unaffected.
-Header and footer content is copied into WP Editor from the HTML for the main website for uniformity of appearance; 404 errors are affecting this header and footer content. Image files are not found; javascript, css, etc. is not found.
-There are two .htaccess files; one in the root directory (/public) and another in the News directory. After researching this problem, I have tried adding the following to the .htaccess in the News directory (we are on an Apache server):<IfModule mod_rewrite.c>
ReWriteEngine On
ReWriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>This hasn’t helped. The following is an example 404 error:
https://abugovkaspar.com/news/images/portfolio/architecture/royop/royop-subheader-01.jpg?lbisphpreq=1 Failed to load resource: the server responded with a status of 404 (Not Found)
When I revert to ‘Plain’ permalink settings, the problem disappears. I am fairly new to WP, and am not much of a code guy; I appreciate any help that I can get with this.
Dan
- The topic ‘Permalinks set to 'Post name' returning 404 errors on WP page nested in website’ is closed to new replies.