Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Goodnight
Map Vanity Domain

Map a Vanity Domain to a Page or Post on WordPress Website

This post was last updated: Sep 6, 2022
BlogWordPress

About a 1 minute read

"Life is like riding a bicycle. To keep your balance, you must keep moving."

Albert Einstein

This article contains the essential steps for mapping a vanity domain to a post or page on your WordPress site. For example: myvanitydomain.com will show the page/post: yourwebsite.com/vanity/

1) Purchase the domain on your host
2) Assign the domain to the root of your WordPress site where the landing page lives – *if the site is in a directory, assign the domain to the same location as the index.php that points inside the directory

3) Paste in .htaccess above #BEGIN WordPress


1
2
3
4
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^yourvanitydomain.com$ [NC]
RewriteRule ^(.*)$ index.php?page_id=2 [NC,QSA] //Change the id to your page id