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.

  • Is it a live or development website? Because im seeing a rewriteBase /dev/ – C Travel May 15 '17 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 May 15 '17 at 20:23
  • @Milo the theme does not have a 404 page. – IrishTrekkie May 15 '17 at 20:25
  • when were the troubles visible? dit you moved the website? update a plugin? or wordpress? – C Travel May 15 '17 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 May 15 '17 at 20:30
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]

| improve this answer | |
  • ok i added it , still getting 404 – IrishTrekkie May 17 '17 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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