0

Hey a friend of mine was having trouble with a wordpress website and all pages other then home pages keep giving a 404 error.

  • look at the php admin database and wp_options are pointing to the right website.

  • so i look at the htaccess and it looks fine (here is whats in it)

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

Tried resetting the permalinks and still 404.

So any ideas what could be causing this ? update: its not a new site or has it moved server. here is the link wantajob.ie anyway.

6
  • Is it a live or development website? Because im seeing a rewriteBase /dev/
    – Carl0s1z
    Commented May 15, 2017 at 20:12
  • Do you see the WordPress theme 404, or the server's 404 page? If you see the server's 404 page, the problem is further upstream than WordPress.
    – Milo
    Commented May 15, 2017 at 20:23
  • @Milo the theme does not have a 404 page. Commented May 15, 2017 at 20:25
  • when were the troubles visible? dit you moved the website? update a plugin? or wordpress?
    – Carl0s1z
    Commented May 15, 2017 at 20:29
  • That's not important, if it's the server's 404 page, the problem is higher up than WordPress. If it looks at all like the theme, meaning WordPress is loading, then the problem is WordPress.
    – Milo
    Commented May 15, 2017 at 20:30

1 Answer 1

0

Please try this .htaccess.

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

1
  • ok i added it , still getting 404 Commented May 17, 2017 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.