How to Create Custom Permalinks in WordPress
Vložit
- čas přidán 24. 11. 2019
- Do you want to customize the permalinks for your WordPress posts, pages, and other post types? We've had users reach out to us wanting to customize this safely without breaking their links. In this video, we'll show you how to create custom permalinks in WordPress without affecting your SEO.
This video is sponsored by MonsterInsights, take a look at MonsterInsights here:
=================================
www.monsterinsights.com/
=================================
For the discount, use our code: WPBVIP
At the end of the video, we will show you how to create redirects but for sites with a visitor base, we would recommend caution before changing permalinks. For your standard permalinks, you can go under Settings, Permalinks and modify the permalink structure there. We normally recommend the post name structure for most sites.
Below the standard permalinks, there is the option to change the category and tag base. This would mean rather than your site/category/name it would be what you set here replacing category in the URL.
For individual posts or pages, with the block editor, you would go next to the title for modifying or in the document settings under permalink. This will allow you to change the final part of the permalink with the post's name only to let you make it the correct name that you are wanting.
For changing a category you would go under Posts, Categories, and click the edit link beneath the category name you want to modify. You will both have the option to change the name you see on the back end of your site as well as the slug which is what is added in the URL.
For editing the author slug we would recommend using the Edit Author Slug plugin found here:
wordpress.org/plugins/edit-au...
With that active, you can go under Users, All Users and edit the user who's slug you want to modify. For the permalink for authors in general if you wanted to change that then you would want to go under Settings, Edit Author Slug.
For even greater control over your permalinks, we would recommend the Custom Permalinks plugin found here:
wordpress.org/plugins/custom-...
With the plugin activated you can edit the post you want and scroll down to find the custom permalink editor below. This will give you the power to make this specific content have any permalink you want. You can also visit the categories themselves to customize it there.
With the permalinks changed this can cause 404 errors when trying to visit their old links which is a greater problem for already set up sites. To solve this we will be using the Redirection plugin found here:
wordpress.org/plugins/redirec...
this will allow you to redirect the posts from their old locations to your new custom permalink.
If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.
czcams.com/users/subscription_...
Feel free to take a look at the written version of this tutorial here:
www.wpbeginner.com/wp-tutoria...
Check us out on Facebook
/ wpbeginner
Follow us on Twitter
/ wpbeginner
Check out our website for more WordPress Tutorials
www.wpbeginner.com
#WordPress #WordPressTutorial #WPBeginner - Jak na to + styl
thankyou so so soooo much ,I was sad whole day after change permalink setting. your video helped me.
Glad our guide was helpful :)
You saved me from stress. Many Thanks
Glad to hear :)
Got my solution in 2 minutes, thank you!
You're welcome!
Really good and clear content!
Glad it was helpful!
Are these URLs absolute or relative? If you were to migrate/restore to a new site location would these change with the migration?
As long as your permalink settings are the same, it should be the same even if you migrate the site :)
Thaks a lot! Miss, You're the best!
Glad our guide was helpful :)
How would you apply this after migration from blogger? Since blogger permalinks have year/month structure in them.
Thanks!
We do not have a simple method for redirecting to a structure without the date included.
can we add a category in WordPress business website pages instead of post?
It would depend on your specific reason for that organizational method but there are plugins to add categories to pages if you want.
If I own multiple different domains, how do I get the domains to go to separate pages of my main website? Like if I search one of my domains, instead of it taking me to the front page of my main website it takes me to a specific page of my website?
Is that something where I search the domain and I have it redirect me to one of my pages of my main website?
You would want to reach out to your hosting provider and they can normally assist with setting that up.
Thanks , Let's say I had an old site with a link like /foldername/test.html Now moving to new site but want to preserve only that particular URL for on page only I tried to change the permanent link of one page but it does not accept test.html it only accepts test.html/ as a folder . Any way to do this?
You would likely need to use the custom permalinks plugin for that
@@wpbeginner Thanks is that the name of the plugin too? Do you know the exact plugin name? Also I wonder what will happen let's say after a year or two the plugin is not compatible any more will all those links get messy ?
Thanks for the good work.
Glad you found it helpful!
If I change a permalink on a page, do I also need to update the button that I have on my homepage which is linked to that page?
Yes, you would want to update links to that page, you can also look into creating a redirect using our guide below:
www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/
If I add categories in my home navigation menu while keeping the main blog page as well, will it create a duplicate content issue?
like I have categories of
buying guides
product reviews
and my top navigation menu looks like
Home About Buying guides products reviews blogs contact
will it create a duplicate content problem? as I will be having posts that are common in categories and original blog page.
how to fix this?
please, I will be waiting for your timely response.
You should not have a duplicate content issue.
@@wpbeginner thank you very much. Love your channel. I m just lovin you. Bundle of appreciations for your work. 😍
hello i need write accent in my slug permalinks in whordpress, but wordpress block it, with this plugin or with you solution is its possible to do it please ? thanks yann
That plugin would not allow accents in your permalinks, you would want to try the plugin below as they say they allow this in their documentation:
wordpress.org/plugins/permalink-manager/
Hello. Do you know how I can change my shop page so that it is my new home page? Thank you for your time
You would want to check under Settings>Reading in your admin area.
Thank you Thank you so so much for this making plugin
Glad you found it helpful :)
amazing! thanks a lot
You're welcome!
I have just set up a woocommerce site, I have thousands of products, and I don't like the way the URL is set up. Is there a way I can bulk edit the URL?
It would depend on what you are looking to change, you can change a large number of permalinks under Settings>Permalinks.
I have a site that has been active for 9+ years. I did not understand what changing the structure of the permalinks would do and I changed the setting. The previous setting was a custom structure. I do not know what it was. Of course, I want to go back to it. Is there a way, other than restoring my site from a backup to restore the old custom structured permalink - maybe using file manager?
Rather than trying to revert them without knowing the old permalink structure, we would recommend setting up redirects using one of the methods in our article below!
www.wpbeginner.com/plugins/how-to-track-404-pages-and-redirect-them-in-wordpress/
If you still want to go back to your old structure then there sadly is not a way to see previous permalinks.
Awesome! great
Glad our video was helpful :)
So Squarespace post links have www.websiteurl/blogs/postname. How do we have the same permalink structure in WP?
For moving from Squarespace you would want to take a look at our guide below:
www.wpbeginner.com/wp-tutorials/how-to-properly-move-from-squarespace-to-wordpress/
I purchased a domain and am using wordpress.org I just noticed that at the top my url is now completely different then what it was and I don't know how to fix it. Have you heard of that happening?
That is very strange, you may want to reach out to your hosting provider for them to take a look and try to assist.
Say I have an established WP blog where all the post urls have the date in them. I know how to change the urls so they only show the post title in the url. I go to settings, permalinks and change it. However after doing that I will have lost all the links and seo I had developed with the old permalinks that had the date in them. Say there are over 100 posts. You really didn't explain how to universally redirect all those old post urls (containing dates) to the news urls (containing only post title) without suffering any link and/or seo damage. Will the "redirect" plugin you mentioned accomplish this? Do I have to change the css code or other code? Is there a simple way to do this?
We do not have a simple method for creating redirects from your URLs with dates in them at this time. You would need to manually create those redirects at the moment.
i can't found menu "permalink" in my wordpress :(.. why?
Then you are likely on WordPress.com, our tutorials are for WordPress.org sites:
www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/
Awesome dear 🤗🤗🙏🙏
Glad you liked our video :)
Thanks
You're welcome :)
Permalink is not found in the list of the items under settings. Please help me out.
Settings>Permalink doesnt exist in my word press. The items I see under settings are:
General
Performance
Writing
Discussion
Reading
Media
Hosting Configuration
It sounds like you are on WordPress.com and our guides are for WordPress.org. You can see the difference between the two in our article below:
www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/
i wish i was slightly more advanced in this to take advantage of you excellent teaching. however when you flew by the part with all the %hge% signs and not explain specifically what they are for. so where can i find something rudimentary for slow people like myself who just learned what a permalink was. i will subscribe.
If you want to create a custom permalink using that method then you would want to take a look at the WordPress.org page here:
wordpress.org/support/article/using-permalinks/
We point users toward the plugins for custom permalinks as they tend to be more beginner friendly
Hey I can not find the permalink option please help me
If you are on WordPress.com you would not have that ability. For a comparison of WordPress.com vs org you can take a look at our guide below:
www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/
This could of solve my issue but just a few days ago:
This plugin has been closed as of December 28, 2022 and is not available for download. This closure is temporary, pending a full review.
hope it comes back soon
Thank you for letting us know about this!
Can you please talk about capitals in the permalinks
We do not recommend forcing capital letters in your permalinks at the moment
I am noticing a difference at 1:10
POST NAME startawpsite.com/sample-post/
< MY > POST NAME startawpsite.com/sample-post/
I am unable to place the letter S after the http as that block is grey and unchangeable.
Thank yo for reading. Also I hope to your viewer's they find your reply helpful.
For HTTPS you may want to take a look at our article below for how to add that:
www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/
Hello! Links on product catalogs are not allowed
You would want to check with what you are using to create product catalogs for if they have a workaround
so nice video mam
Glad you liked our video!
@@wpbeginner mam i am new in website learning...will u help me...me prasad from india
First 😊👍
:)
I want to remove product category from the url..for example www.myweb.com/neu/led_bulb instead of..www.mywev.com/neu/product-categories/led_bulb
Reply asap
You would first want to reach out to the support for the plugin you're using for your products first and they may have a built-in way to do this easily.
Nc
Glad you like our content :)
Second
:)
how can i create multiple custom links ?
like
/blog/post-name
/service/post-name
For what that looks like, you would use custom post types for your services to have that specific permalink setup.