分享好友 资讯首页 资讯分类 切换频道
How to Create Custom Permalinks in WordPress (Ultimate Guide)
2024-12-26 12:04  浏览:62

Creating clear and descriptive URLs is essential for WordPress SEO. Permalinks are the web addresses that identify individual posts, pages, and other content on your website.

Well-structured permalinks offer several advantages. Descriptive permalinks containing relevant keywords can help search engines understand and rank your content effectively, and user-friendly permalinks are easier for people to share and remember.

At WPBeginner, we have found that customizing permalinks to be more descriptive and user-friendly has improved our site’s SEO and user experience.

Permalinks are the permanent URLs of your individual blog posts, pages, and other archive pages on your WordPress website.

The goal of your permalink is to create an easy-to-understand URL structure for both humans and search engines. Here’s an example:

This URL is much easier to understand than URLs from the old days, which looked like this:

You can also use WordPress plugins to create completely custom permalinks for specific sections of your website that override the default WordPress settings.

With that being said, let’s take a look at all the options one by one. We will start with the default built-in options that come with your WordPress site.

For example, you might use the post’s title and category , plus the year when it was published.

Don’t forget to click the ‘Save Changes’ button at the bottom of the page to store your changes.

We recommend using a URL structure that includes the post name in the URL. This makes your URLs more user-friendly and can improve your WordPress SEO.

Make sure you use SEO-friendly permalinks like this when you create a new WordPress blog or website.

However, if you have an existing website that’s already getting traffic from search engines, then changing permalinks can hurt your SEO rankings.

By default, WordPress uses as the base for your category URLs and for the tags pages.

Here are some examples:

Now, you will have a new category and tag bases active on your website, like these:

Once you set up your initial permalink structure, WordPress will use it as a template for all the links on your site.

However, you can also change the URL slug inside the URL structure for individual posts, pages, and custom post types to make it more SEO-friendly.

You can customize the slug part of the URL from the post edit screen inside the WordPress content editor.

If you are creating a new post or page, you must first click ‘Publish’ or ‘Update’ to save your draft.

Once you are done, click on the ‘Update’ button to save the new permalink.

You can use this method for all post types, including WooCommerce products, membership sites, online courses, and more.

In the earlier step, we showed you how to modify the category and tag base prefix in WordPress. In this step, we will show you how to change the URL keywords for an individual category or tag.

WordPress will automatically create an author page URL for the different authors on your website. Author page URLs look like this:

In the example above, is the slug, and is the base.

The issue is that WordPress doesn’t come with an option to change the author URL base or slug. Luckily, you can change this in a couple of clicks using a WordPress plugin.

The first thing you need to do is install and activate the Edit Author Slug plugin. For details, see our step-by-step guide on how to install a WordPress plugin.

If you want to change the author permalink base, then simply go to Settings » Edit Author Slug.

All the above methods allow you to customize WordPress permalinks to a certain extent. However, they cannot help you create completely custom permalinks.

That’s because WordPress doesn’t offer this functionality by default.

Luckily, there’s a plugin that can help. If you want to override the default WordPress URL structure for specific sections on your site, then this is for you.

The first thing you need to do is install and activate the Custom Permalink Editor plugin. For more details, see our beginner’s guide on how to install a WordPress plugin.

Upon activation, you need to open up the post where you want to create a custom permalink.

Similarly, you can also create custom permalinks for categories.

Or you can disable all of your custom permalinks by simply disabling the plugin.

If you have made changes to your permalink structure or author slug or created completely custom permalinks, then you may run into 404 errors.

To fix this, you need to set up permalink redirects from your old to new permalinks.

For more details on setting up permalink redirects, see our beginner’s guide to creating 301 redirects in WordPress.

Now that we have covered how to create custom permalinks, let’s answer a few frequently asked questions about the topic.

What are permalinks in WordPress?

Permalinks are the permanent URLs for your WordPress posts, pages, and categories. They determine how your content is displayed in a web browser’s address bar and on search engine results pages (SERPs).

Why should I create custom permalinks?

Custom permalinks can be more user-friendly and SEO-friendly. They can help people understand the content of your post from the URL itself. They can also improve your website’s ranking in search results.

Can I change the permalink for just one post?

Yes, you can edit the permalink for each post individually from the settings pane of the WordPress block editor.

What’s the most SEO-friendly permalink structure?

The most recommended structure is the ‘Post name’ option. This structure creates URLs that use the post’s title. This is easier for humans to understand and is favored by search engines.

What happens to my old permalinks if I change the structure?

When you change the permalink structure, the URLs for all your existing posts and pages will change as well. This can affect your SEO if you don’t set up 301 redirects.

Do I need to set up redirects if I change the structure?

Yes, we strongly recommend you set up redirects to ensure users and search engines land on the correct URLs after the change. Plugins like All in One SEO and Redirection can help you manage redirects easily.

We hope this article helped you learn how to create custom permalinks in WordPress. You may also want to see our guide on how to add keywords and meta descriptions in WordPress or our expert picks of the best backlink checker tools to see who is linking to your site.

    以上就是本篇文章【How to Create Custom Permalinks in WordPress (Ultimate Guide)】的全部内容了,欢迎阅览 ! 文章地址:http://w.yusign.com/news/4787.html 
     资讯      企业新闻      行情      企业黄页      同类资讯      首页      网站地图      返回首页 述古往 http://w.yusign.com/mobile/ , 查看更多   
最新新闻
年底换机的实力派选择:华为畅享70性能出色,体验超便捷手机派「年底换机的实力派选择:华为畅享70性能出色,体验超便捷」
年底的购物盛会即将到来,各大手机厂商早已释放出各种优惠活动。这也成为了不少消费者为自己或家人挑选一新手机的好时机。要说既
手机好评排行:OPPO Find X8仅排第二,第一名出乎意料排名前十最好用的手机「手机好评排行:OPPO Find X8仅排第二,第一名出乎意料」
1月8日消息,酷安网公布了2024年度手机好评榜TOP10,OPPO Find X8仅排第二,第一名出乎意料。和消费者不同,热爱搞机的网友们带
LED外屏翻盖手机 三星S5520新品不足2K三星翻盖手机「LED外屏翻盖手机 三星S5520新品不足2K」
本周,三星S5520新品手机到货申城。三星手机的风格一向给人较为商务化的感觉,而三星S5520做了一定的突破。从整体外观来看,三星
小米手机助手叫什么小米手机助手「小米手机助手叫什么」
小米手机助手叫“小爱同学”,是小米旗下的人工智能语音交互引擎,智联万物的ai虚拟助理,已搭载在小米手机、小米ai音箱、小米电
湖州去贵州贵阳景点
1. 湖州前往贵州贵阳可体验这座高原森林城市独有的自然风光与人文历史。贵阳的红枫湖风景名胜区是必游之地,水域总面积达57.2平
借条逾期一天影响大吗?会有什么后果?
借条逾期一天影响大吗?会有什么后果? 借条逾期一天影响大吗小编导语在现代社会中,借贷行为已成为一种普遍现象。无论是亲友间
当贝智能鱼缸1 Ultra发布:开启2.0时代 告别99%养鱼烦恼上市新款手机「当贝智能鱼缸1 Ultra发布:开启2.0时代 告别99%养鱼烦恼」
内容导航:   | 全文浏览 新款手机往往在设计上拥有诸多新鲜元素,虽然价格上会高一些,不过避免了买到翻新机的困扰,对喜欢尝
华为全新nova系列智能手机柏林发布华为新品手机「华为全新nova系列智能手机柏林发布」
[德国,柏林,2016年9月1日]华为在2016年德国柏林国际消费类电子产品展览会(IFA BERLIN 2016)上发布了全新华为nova系列智能手
美版苹果手机有锁和无锁的区别,如何选择最适合你的?苹果手机有锁和无锁的区别「美版苹果手机有锁和无锁的区别,如何选择最适合你的?」
苹果手机美版有锁和无锁的区别主要涉及到设备的解锁状态以及在不同运营商网络下的适用性。让我们深入探讨这两者之间的差异。1.
苹果手机怎么清理运行内存苹果手机怎么清理内存「苹果手机怎么清理运行内存」
苹果手机由于其独特的iOS系统,与Android手机在内存管理上有很大的不同。iOS系统采用了高效的内存管理机制,使得用户无需频繁手