wordpress 404 - una vez a 404 y una vez a la página de inicio

I have a problem with the 404 in my site. I didn't build the site, just fixing some issues there.

I'm using the default permalink structure, and have a 404.php in my theme folder. My .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

The problem is: when I change the URL to /?page_id="page number that doesn't exist" - I get the 404 page, but when I just write some letters (e.g. /sjkhdk) I get the home page (I want them both to get to the 404 page).

¿Alguna idea?

Gracias, Tal

preguntado el 28 de agosto de 12 a las 09:08

is the WP up to date? What version is it -

1 Respuestas

Whenever I have issues with permalinks, this process generalmente lo ordena.

  1. Make sure .htaccess is writable by the webserver.
  2. Ve a Settings>Permalinks and simply hit Save Changes. This will reset the wordpress permalinks internally.

Hazme saber si esto funciona.

Respondido 28 ago 12, 15:08

Did you try this out @user1629677? - shanem

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.