How to Create a Vanity URL in WordPress via 2 Easy Methods


Ugly, random-looking WordPress URLs, such as yourwebsite.com/?p=123 It can hurt more than aesthetics. These URL structures can impact your brand trust and, ultimately, your SEO. Have you ever shared one of those URLs on social media or put them on a flyer? Nobody remembers them, and fewer people actually click.
That’s why vanity URLs are important. Vanity URLs are clean, branded links that are easy to remember for consumers. They’re also keyword-rich URLs that are great for marketing campaigns, offline marketing, and search visibility.
In this guide, you will learn how to create a vanity URL in WordPress, step by step. We will show you a plugin-based way for beginners and a manual redirect way for advanced users, so you can turn sloppy links into professional ones that generate results.
What is a Vanity URL in WordPress?

In WordPress, a vanity URL is a short, branded link that you create to cover WordPress‘s default and often ugly URLs. Instead of default links like yourwebsite.com/?p=457. You are using descriptive and keyword-rich slugs like yourwebsite.com/black-friday-sale.
They are called vanity URLs because they are meant to be memorable, professional, and marketing-oriented — ideal for a campaign both online and off.
Comparison: Default vs Vanity URL
| Type | Example | Problem/Benefit |
|---|---|---|
| Default URL | yourwebsite.com/?p=457 | Confusing, no keyword context |
| Vanity URL | yourwebsite.com/black-friday | Clear, branded, SEO-friendly |
Real World Example
Let’s pretend your goal is to promote a Summer Sale on social media:
- Default link:
yourwebsite.com/?product=summer-collection-[year]&ref=fb_ad_12 - Vanity link:
yourwebsite.com/summer-sale
Which link would you click or remember? That’s where vanity URL wins.
Why Should You Use a Vanity URL in WordPress?
Setting up a vanity URL through WordPress is not only more visually appealing, but it also helps build trust, SEO, and enhances marketing results. Here are five reasons to start using a vanity URL today:
- Helps Establish Your Brand: A clean and branded link like
yourwebsite.com/dealsIt is more professional than an arbitrary URL like yourwebsite.com/?p=1234. When visitors see that they are clicking on a domain they know, even if they don’t recognize the URL, they feel safer than a random query string. - Improves Search Rankings: Google gives preference to short, descriptive URLs. By creating a vanity URL, you can pass more relevant keywords (wordpress-seo-guide) to the URL, which provides additional meaning for a search engine to assess rankings.
- Improves Click-Through Rates (CTR): Would you prefer to click
yourwebsite.com/page?id=346oryourwebsite.com/holiday-saleThe second one gets straight to the point rather than making users click through a link that they do not even know where it is going to take them, which often leads to better CTR in emails, ads, social media posts, etc. - Ideal for Marketing Campaigns: Vanity URLs work fantastically for seasonal offers and offline advertising. They are short enough to print on flyers, verbalize them in a podcast, or say in a video without sounding dumb.
- Easier Tracking Via Analytics: You can use vanity URLs in conjunction with UTM parameters so that they can be tracked in Google Analytics. For example:
yourwebsite.com/sale?utm_source=instagram&utm_campaign=summer[year].
How to Create a Vanity URL in WordPress: 2 Methods
There are two ways to create a vanity URL in WordPress: plugins and by manually configuring the settings. Generally speaking, plugins will be a quicker and more straightforward alternative and will include other features, such as click tracking and redirect management.
Method 1: Using a Plugin
There are several plugins that you could use for creating your vanity URLs, but the two popular options are Pretty Links and Redirection. Both plugins are easy to use, but Pretty Links is the better choice if you wish to do tracking and management of campaigns.
In this case, we will be using Pretty Links as our example.
Step 1: Install and Activate Pretty Links
- Log in to your WordPress Dashboard.

- Go to Plugins → Add Plugin.

- Search for Pretty Links.

- Click Install Now, then Activate.

Why Pretty Links?
- User-friendly with a clean interface.
- Tracks clicks and sources of traffic.
- Can create a 301 (permanent) redirect and a 302 (temporary) redirect.
Pro Tip: If you only want basic redirects without any analytics, you might want a lightweight option, and the free Redirection plugin is a great alternative.
Step 2: Set Up & Configure Settings
After you activate the plugin, set up Pretty Links for the best performance:
- Go to Pretty Links → Options.

- Pick a Default redirection type (301 is the best choice for permanent vanity URLs).

- Enable tracking to track clicks and sources of traffic.

Why is this important?
If Pretty Links are not used or set up properly, it may have adverse effects on the SEO friendly redirect you may want to create and then later check the performance of your campaign.
Step 3: Set up your Vanity URL
Now, let’s set up the vanity link step by step:
- Go to Pretty Links → Add New Pretty Link.

- Enter your Target URL – this is the long URL you want to shorten.

- Decide on your Pretty Link (the branded slug). Example:
- Target:
https://yourwebsite.com/products/blue-running-shoes-[year] - Vanity:
https://yourwebsite.com/blue-shoes
- Target:
- You can also add a Title (optional) for your reference.

- Click Update to save the link.

Pro Tip: Keep your vanity slug short and ensure it is rich in keywords (e.g. “/sale” or “/ultimate-seo-guide”).
Step 4: Test and Use Your Vanity URL
After creating your link:
- Open the vanity URL in a new tab to ensure it redirects and opens the target URL correctly.
- Test on desktop and mobile.
- Share it on your social accounts, marketing emails, or even put it on a flyer and distribute it!
As well as using the URL, you will want to track how many clicks/integrations your audience takes:
- Pretty Links will show you click stats under the Pretty Links dashboard.
- However, if you want to have that data plus anything that is wonderful about Google Analytics, we suggest you add UTM parameters to the vanity URL.
Method 2: Manually Create a Vanity URL in WordPress
There are two main ways to create vanity URLs manually:
- Change WordPress permalinks.
- Add redirection rules through .htaccess (this is advanced).
This is helpful if you want fewer plugins or more control over what happens on your site.
Step 1: Change WordPress Permalinks
WordPress allows you to create custom slugs for posts and pages. You can relate the name of a post or page to its URL slug as follows:
- Go to Settings → Permalinks.

- Select Post Name as the URL structure (
/post-name).
- Save changes and voilà ! Now you will have clean URLs that focus on keywords.

Example: yourwebsite.com/seo-basics instead of yourwebsite.com/?p=987.
Step 2: Add Redirects through .htaccess (Advanced)
If you only want a vanity URL that redirects to another location, use the following steps:
- Log in to your website files via FTP or cPanel.

- Find and open the
.htaccessfile located in the root folder of your WordPress installation.
- Add this line for a permanent redirect:
Redirect 301 /summer-sale https://yourwebsite.com/shop/summer-[year]. - Save the .htaccess file and go test your vanity URL in the browser.
Important: Always have a backup of your .htaccess before opening it in a text editor, as it can break your website if you make a mistake.
Step 3: Test Your Manual Vanity URL
- Go to the vanity link to make sure it redirects correctly.
- Make sure to test on mobile and desktop browsers.
- Update any marketing materials with the new vanity URL.
Final Thoughts
Vanity URLs may seem like a minor tweak, but in the context of WordPress, they can be a boon to your branding, SEO, and user experience. Clean URLs with relevant keywords are a lot easier for visitors to remember, more inviting to click on, and send stronger signals to search engines about your site’s content.
If you want convenience with tracking and analytics, a tool such as Pretty Links is your best option. The plugin helps you create, manage, and track vanity URLs in minutes, which is ideal for bloggers, marketers, or eCommerce stores with multiple campaigns running.
If you want to keep things lightweight and do everything with no plugins, the manual option of either customizing permalinks or adding .htaccess redirect rules will be just as good. This option is great for developers or those who want minimal installation.
Regardless of which method you use:
- Keep the URLs short and descriptive.
- Always test them before sharing across campaigns.
- Change them as part of your ongoing WordPress SEO strategy.
Just change a couple of important vanity URLs, such as those around your best offer or evergreen content, and you’ll see how much cleaner your marketing efforts become.
Frequently Asked Questions
Q1. Is there any harm in changing URLs manually?
Yes, changing permalinks or .htaccess can be dangerous; if you change them incorrectly, you could lose your links or create redirect problems. Always make sure to test vanity URLs once you have created them, and be sure to back up your website prior to making manual edits.
Q2. What’s the easiest way to create a vanity URL for my WordPress site?
The easiest way to create a vanity URL is to use a WordPress plugin like Pretty Links. Pretty Links gives you the opportunity to quickly and easily create, manage, and track your vanity URLs from one location in your WordPress dashboard.
Q3. Can I create vanity URLs without a plugin?
Yes. You can create vanity URLs manually by changing some page slugs through the WordPress permalinks settings or create a 301 redirect in the site’s .htaccess file.
Q4. Does creating a vanity URL give me an SEO increase?
Yes. Vanity URLs will often have relevant and logical keywords, which will improve search engine friendliness, improve user trust, better click-through rates, and optimize user experience.
Q5. What is a vanity URL in WordPress?
A vanity URL in WordPress is a clean, branded, and easy-to-remember link that will take the user to a longer or more complicated URL. A vanity URL improves link clarity and readability, builds trust with users, and maximizes the overall user experience.

Ekta Lamba
Ekta Lamba is a tech writer at DevDiggers focused on making WordPress and WooCommerce straightforward for non-developers. She covers plugin errors, platform updates, and WordPress basics, written so readers can follow along without a second tab open to translate the jargon.
Join thousands of readers getting smarter every week.

Leave a Reply