by kaspir » Mon Sep 25, 2017 5:28 am
First thing I would do is save a copy of your .htaccess OR in this case a nginx configuration somewhere safe.
Then create a clean new one using only what you need. Starting with this ONLY what is required, for example on apache:
Code: Select all
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
We do this to work out any errors you may have in current .htaccess, you may add one codex at a time thereafter, testing as you go and quickly find a culprit if you have one producing that 404 error.
I don't know how to write nginx, but give this a try mate! It's a online convertor I just stumbled upon:
https://winginx.com/en/htaccess
EDIT: btw, 404 server error is does not exist right? So ask yourself which url is showing your error and could also begin there.
First thing I would do is save a copy of your .htaccess OR in this case a nginx configuration somewhere safe.
Then create a clean new one using only what you need. Starting with this ONLY what is required, for example on apache:
[code]# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress[/code]
We do this to work out any errors you may have in current .htaccess, you may add one codex at a time thereafter, testing as you go and quickly find a culprit if you have one producing that 404 error.
I don't know how to write nginx, but give this a try mate! It's a online convertor I just stumbled upon: https://winginx.com/en/htaccess
EDIT: btw, 404 server error is does not exist right? So ask yourself which url is showing your error and could also begin there.