Fixing Landing Page 404 Error & Flushing WordPress Permalinks

Sometimes when the plugin is installed your WordPress installation doesn’t flush the permalink cache and this results in a 404 error when trying to preview or view your newly created landing page.

To fix this. Go into your wordpress dashboard and head to Settings > Permalinks. Simply visiting this page will flush the permalink cache and should get rid of your 404 error.

 

Written Instructions

 
To fix 404 or A/B testing issues follow these steps:

  1. From your WordPress Admin Dashboard, Head into Settings->Permalinks and re-save settings and re-check.
  2. Manually view .htaccess file (in the root directory of your wordpress install, aka the folder with the wp-content and wp-admin folders located in it) and make sure #wordpress rules are on top and recheck (see below for example).
  3. If solutions 1 & 2 fail then head into your wordpress base directory and delete the .htaccess file and then re-save permalinks.
  4. If solution 3 fails then disable all other plugins and re-save permalinks and recheck the landing page URL.
  5. If solution 4 fails please post the contents of your .htaccess file here for review.

Your htaccess file should look something like this:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]

RewriteCond %{QUERY_STRING} !lp-variation-id
RewriteRule ^go/([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteRule ^langing-page=([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress