Pretty permalink is the preferred URL for WordPress sites, but exactly what makes URLs beautiful? If you are using WordPress for the first time, you may want to know what permanent links are. Permanent links, or permanent links, are URLs that archive individual pages and posts, categories, and tags on a web site. They are permanent web addresses that are used to connect your content and will never change. Well organized permer links are important for bringing users to your site because visitors and search engines can easily navigate and reference your content. The
In this post, we will see some advanced settings on how permer links work in WordPress, how to manage settings at the back end of the site to optimize SEO, and how to make permer links work correctly on the server. There are three default types of permer links available for WordPress persistent links. \
\
To change the permer link structure, go to Settings > persistent links on the back end of the site to access the persistent link settings. You can select one of the more common persistent link structures, or you can select one of the more common persistent link structures, or enter a unique structure in the custom structure field. Set the general permanent link for selecting the default value. There are 6 options to choose from. General: ugly permer link settings. Date and name: use year \/ month \/ day format and post name. The name here indicates the bold type of the post. Month and name: the same as option 2, but without week information. Number: this option uses only the post ID in the row in the wp_posts table in the database. Post name: use the post name. Custom structure: using the last field, you can define a unique structure using the complete structure tag set available in word press. The default setting is a normal or \
Create a custom persistent link WordPress provides 10 structure tags to define a custom persistent link structure. The first 7 are the ones you contact most often.% Postname%: slash of post%post\u id%: unique ID of post%category%: main category of post%year%: year of post%month%: month of post%day%: digital date of post%author%: potentially useful in multi-author and magazine type environments. If you want to be very specific about the timing of permerlink, you can use the%houh%,%minet% and%second% options, but it’s hard to think of a really useful general situation. The
When configuring a custom structure, you must include at least%postname% or%post\u id% to make WordPress specific to a particular post. work
Provide a guaranteed unique identifier. With all this in mind, if you want to create a custom permanent link structure consisting only of post ID and post name, please enter: \/% In id%\/%postname%\/ at this time, on the same screen under the optional settings section, you can also choose to set custom categories and tag bases for the site. The category and tag based settings can also be customized. SEO friendly buyer link buyer link and link structure are very important from the perspective of search engine. Over the past few years, we have had a lot of heated discussions on this topic, but Google’s guidance on URL structure is very simple. Try to keep it simple and understandable. The
In Google’s search results, users will receive four information: title, description, date and permanent link. With these details, users can quickly know whether the page contains the required content. For example, if there are goat posts and the default permanent link setting is enabled, the URL will http:\/\/www.example.com\/?p=135 Yes, but if you enable the post name setting, the URL can be: http:\/\/www.example.com\/mountain-goats\/ , it is much easier for humans to read and understand. As a result, ugly persistent links are not user-friendly, and best practice SEO is generally not recommended. The
Recent Moz for the topic. Com article explains this in more detail, but the basic content is not difficult to master. Keep URLs short. Less than 100 characters is ideal. Please use keywords in the URL, but do not try to enter keywords. If possible, delete the dynamic attribute. Use hyphens as separators and omit terminations such as and, or, but, of. Before selecting the appropriate permerlink structure for the site, we discussed the default options for controlling permerlink, but we haven’t determined what the ideal permerlink structure for a WordPress site is. Short answer: it depends. Not all sites enjoy the benefits of the same structure, but there are several common issues to consider. The
The first thing is that it is almost certain that permerlink contains the post name. This is a combination of site users and search engine utilities and is usually required. For example, if you browse the wpmu dev Blog Archive, you will find that this is the structure we use. Simple but valid post name permanent link running on wpmu dev. If your website focuses mainly on news, you may need to include date information in permunlink, otherwise it is difficult to justify it. For the convenience of readers, if you want to include date information, it is more reasonable to include it in the metadata information of posts that can be scanned more easily. The
Male date based permanent links can be understood from the context of news websites. The category information contained in the URL can be understood from the context of the site. The site has a separate and well-defined attention section. If multiple categories are used in a post, only one permer link is displayed and prioritized alphabetically. If you need more detailed control over this, consider using the WP category permalink plug-in. As long as the URL contains the post name information, the correct solution will not have a huge impact in any way. Before word press 3.3, using the post name on the buyer link would lead to performance degradation, but it was a happy time. The
As Matt Cutts, former head of Google’s Web spam team, pointed out, if you get basic information about permerlink, the exact structure you need is mostly a matter of your personal choice. Pretty permalink activates specific hosting
Depending on the nature of the settings, you may need to verify that the specific settings on the server are correct for the permer link to work properly. In short, the web server needs a way to turn persistent links into actual targets. How you do this depends on the type of web server you are using. Many hosting providers may have handled these details, but sometimes find themselves needing to open their hoods. The most common settings are described below, but generally, if you encounter difficulties, modifying the permanent link problem of Codex is a good place to start solving the problem. The web server used by most WordPress sites where Apache uses permanent links is Apache. In this case, you need to ensure that several technical prerequisites exist and are correct. First, you must install and activate Apache’s mod_rewrite module. In the WordPress home directory, the followssymlinks option must be active and allow the FileInfo directive. You can find useful analysis on how to do this in the super user’s Apache configuration file. Then there is the one available on WordPress. The htaccess file is also required. If it doesn’t exist, WordPress will try to create it when the beautiful permanent link is activated, and it needs the write permission of the file Because fiddling with htaccess files at the best time can be a messy business, it’s best not to break in directly from here unless you have prior experience. In this context. More information about using htaccess files can be found on the using permalinks word press Codex page. If these items are in place, you must be able to manage the actual preferences on the back end of word press. Persistent links are used on other web servers, and Apache is not the only server that is widely used. Popular alternatives are nginx and lighttpd. You can find instructions on how to use persistent links in word press codex, tips on how to start and run Windows Server, and how to install locally on MAC and PC. Ideally, changing permer links for real-time sites requires that the preferred permanent link structure be determined before the site is started and then maintained over time. However, one day you may need to change your existing site. Remember, this is a big step for the entire site, and a potential play with existing external links and SEO rankings. Making changes on the WordPress backend should be simple enough, but in order not to be hostile to users and search engines, you must redirect all previous links 301. Start by checking if there is a complete list of previous URLs and redirection targets. Ideally, plug-ins such as redirection or SEO redirection plug-ins are recommended to handle heavy tasks to ensure that the previous link still finds the correct target. For a complete analysis of the topic and a guide to the available related plug-ins, see WordPress’s 301 redirection overview. Defining the final permanent link structure was one of the first decisions made by the new WordPress site. From the perspective of SEO and performance, it is better not to use the default \