I would initially suspect the change in wp-config
Is it set back to the original url, when the site worked?
Thread Starter
Nikk
(@nikk)
Thanks for your quick reply. No I didn’t change anything in the wp-config file once it worked. Because I can’t edit it on the WP admin page. So this two two lines:
define(‘WP_HOME’,’http://example.com’);
define(‘WP_SITEURL’,’http://example.com’);
Are stil in the wp-config file…
In your root on your server, do you actually have WP’s basic index.php?
Also, if you suspect permalinks, you can delete your .htaccess file to set them back to default. (if you have custom rules in there other than WP stuff, delete the WP stuff only)
Thread Starter
Nikk
(@nikk)
Yes I have the index.php in my root…
Just deleted the .htaccess file but It didn’t work unfortunately
My .htaccess looked like this:
# 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
Thread Starter
Nikk
(@nikk)
Update: when I set the permalink settings to ‘default’ the post links work again.
But in my posts I linked to the full posts with a custom structure (/%postname%/). And with this custom structure I get the 404 error.
I think I’ve to edit something in my .htaccess file, but what?
Usually resttnig your post permalinks back to the custom structure will update your .htaccess, or give the code to use