Preview shows 404
-
For some reason, my site has started to show a 404 error whenever I select to view a preview of a post/page.
I’ve seen what the problem is, but not sure what to do to fix it.
When I do a preview, it brings up something like this:
So it is putting the preview URL after the admin URL.
Just to add to the confusion, if I use the preview link on the post list page for a post which is scheduled, it shows the preview as it should do.
I thought it may have been something to do with the .htaccess file, so I changed it to show what was written in the bottom of the permalinks page, which it said it couldn’t add as the .htaccess file isn’t writable (though it is set at 755).
Doing that gives an error 500 on the entire site, so I tried removing the .htaccess and saving the permalinks to create a new one, but a new one isn’t being created for some reason.
This is what WP is telling me to add to my .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase sylv.net/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . sylv.net/index.php [L]
</IfModule>Going back to my original .htaccess file, it shows the site as it did before, but I still have this problem with previewing.
Any ideas?
Thanks.
- The topic ‘Preview shows 404’ is closed to new replies.