Published by exdone
Posted on September 29, 2015
Error: WordPress Preview shows 404 error page
Solution: try adding the following to the wp-config file and then update the permalinks
define(‘WP_HOME’,’http://mydomain.com’);
define(‘WP_SITEURL’,’http://mydomain.com’);
Add the following to .htaccess under the website root
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress