How to change Ugly link from
I want to make two types of links:
The latter should lead to the first.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
Settings --> Permalinks. Choose 'post name'.
This Ugly Links you call in WordPress is named Permalinks. There are many formats of Permalinks, such as:
I didn't quite understand your question, Did you change the Permalink some how? Are you getting redirected? Or, Would like to get redirected? Because if you would, I'm afraid it's not possible for you to do URL's redirecting this way (Unless if you want to mess around with your code, then go ahead).
Something nice about Permalinks in WordPress is that it offers to us an awesome flexibility to create our own custom URI. It gives to us some sort of tags to mess around that looks something like this:
Go to https://codex.wordpress.org/Using_Permalinks to know more about the Custom URI Tags and see how WordPress URI Formats is structured.
If you're planning to add some extra information to your URI that the WordPress does not offer (let's say a
- symbol), you need to know that, we don't place this kind of stuff explicitly on the URL, if you do so, it'll break your Theme or Plugin, and it might give you a hard time to figure it out.
For security measures URL's are encoded by the Browser, blocking any kind of suspicious/malicious attempt to hack your Theme or Plugin. Please take a look to HTML URL Encoding by W3C, it will give you a set of
UTF-8 encoding standards.
Let's say that you want to create the following structure:
I suppose it could be easily done by selecting the Custom Structure from WordPress Formats and place at the URI input this