Removing Default Landing Page Permalink Prefix
-
I would like to remove the “Default Landing Page Permalink Prefix” and just have the address go to https://website.com/landing-page instead of using /go/ or another prefix.
I believe this requires me to update the .htaccess file rewrite rules, but I tried to edit your lines of code only to completely break my site. Can you suggest a way to edit .htaccess to allow this?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{QUERY_STRING} !lp-variation-id
RewriteRule ^go/([^/]*)/([0-9]+)/ /go/$1?lp-variation-id=$2 [QSA,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 ^landing-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]
</IfModule># END WordPress
- The topic ‘Removing Default Landing Page Permalink Prefix’ is closed to new replies.