How to Change a Page or Post’s URL

How to Change a Page or Post’s URL

Need to change a page URL?

WordPress makes it easy to change the URL of any post or page via the dashboard. Here’s how to do it.

How to Change a Page or Post’s URL

First, navigate to the page editor in your dashboard. Once there, you’ll see the current URL displayed beneath the title of the post/page.

screenshot highlight the URL of a pageWordPress calls this the “Permalink”

Next to it, there’s an Edit button you can click to enable the URL editor.

screenshot of a post URL being changed

Update to the desired URL and press the OK button. Then make sure to click the Update button to save the post, or the new URL won’t be saved.

Why hyphens?

WordPress separates words with hyphens in the URLs. This is a commonly used practice and makes for easy-to-read URLs.

Make sure to separate words with hyphens, rather than spaces or underscores. Also, it’s best to take out any stop words like “a”, “the”, and “or”.

Yes, and no.

If you update the URL of a post or page, WordPress will automatically update the URL everywhere it can on your site. For instance, if you have a link in your menu to a page and you update its URL, WordPress will automatically link to the page’s new URL. Likewise, your blog will always link to your posts’ current URLs no matter how many times you update them.

That said, WordPress will not update any links within your post content (I mean a link like this). Also, any other sites that linked to your post/page will be linking to the old URL still which will show a 404 error.

As just mentioned, external links and links within post/page content will still point to the old URL. You could manually update links in your content, but what about those external links?

For that, you simply need a redirect. You can set up a redirect so when someone visits the old URL, they will automatically be taken to the new URL. Your visitors won’t even notice the difference.

You can follow our guide on creating redirects with WordPress to learn more.

URL update complete

It’s best to avoid changing URLs if you can, but there are times when you need to modify them. When that happens you can easily change them using the permalink editor in WordPress.

Make sure to follow best practices when editing your URLs and set up a redirect afterward to avoid sending people to a 404 error.

    • Related Articles

    • Adding and Managing Products (WooCommerce)

      Adding a product Before adding your first product, let’s get familiar with how product categories, tags, and attributes work. Product Categories Product categories and tags work in much the same way as normal categories and tags you have when writing ...
    • Managing Product Categories, Tags and Attributes

      Product categories Product categories are the primary way to group products with similar features. You can also add subcategories if desired. For example, if you sell clothing, you might have “t-shirts”, “hoodies” and “pants” as categories. How to ...
    • Adding a Variable Products

      Variable Product Variable products are a product type in WooCommerce that lets you offer a set of variations on a product, with control over prices, stock, image and more for each variation. They can be used for a product like a shirt, where you can ...
    • How to Add New Users and Authors to Your Wordpress Website

      Do you want to add multiple authors to your blog? WordPress comes with a built-in user management system that allows you to add users with different roles and capabilities allowing you to add new users without worrying about the safety of your site. ...
    • Adding Product Images and Galleries

      Adding Product Images and Galleries Images are measured and set in pixels, for example, 800 x 800 pixels. Note that the first number is the width and the second is height. We recommend organizing your images in a folder offline and keeping a backup ...