{"id":2304,"date":"2011-01-20T00:28:19","date_gmt":"2011-01-20T07:28:19","guid":{"rendered":"http:\/\/www.ait-pro.com\/aitpro-blog\/?p=2304"},"modified":"2012-11-09T10:17:09","modified_gmt":"2012-11-09T17:17:09","slug":"permalinks-wordpress-custom-permalinks-wordpress-best-wordpress-permalinks-structure","status":"publish","type":"post","link":"https:\/\/www.ait-pro.com\/aitpro-blog\/2304\/misc-projects\/wordpress-tips-tricks-fixes\/permalinks-wordpress-custom-permalinks-wordpress-best-wordpress-permalinks-structure\/","title":{"rendered":"Permalinks WordPress \u2013 Custom Permalinks WordPress, Best WordPress Permalinks Structure"},"content":{"rendered":"<p>The best WordPress Permalink Structure\u00a0for best website performance and\u00a0including SEO keywords\u00a0in the URL follows these 3 simple rules below.\u00a0 This post is intended to point out the best permalink structures to use\u00a0and not to re-explain what has already been explained regarding WordPress permalinks on the 3 reference links below.\u00a0 I will be explaining custom permalinks in general and in laymans terms with a couple of examples.\u00a0 Take a look at the 3 links on this page\u00a0for reference to verify all the technical and logical reasons for following these\u00a0permalink rules.\u00a0<\/p>\n<p><span style=\"font-size: medium; color: #000066;\"><strong>NOTE: \u00a0As of WordPress 3.3 you no longer need to add a numeric Tag before a Text Tag for performance reasons. \u00a0So basically the best Custom Permalink Structure would now just be simply \/%postname%\/ for SEO purposes.<\/strong><\/span><\/p>\n<table style=\"width: 575px;\" border=\"0\">\n<tbody>\n<tr>\n<td width=\"15\">\u00a0<\/td>\n<td style=\"width: 15px;\" valign=\"top\"><strong><span style=\"font-size: large;\"><span style=\"color: #000066;\">\u2022<\/span><\/span><\/strong><\/td>\n<td width=\"531\">Your permalink structure should start with a numeric field not a text field structure tag.\u00a0\u00a0<\/td>\n<\/tr>\n<tr>\n<td>\u00a0<\/td>\n<td valign=\"top\"><strong><span style=\"font-size: large;\"><span style=\"color: #000066;\">\u2022<\/span><\/span><\/strong><\/td>\n<td>Your permalink structure does not need to include a category structure tag.\u00a0 A category structure tag may offer a very slight SEO benefit, but the benefit is probably very little if any.\u00a0 Your post name structure tag on the other hand is very important for SEO.\u00a0 If you want to include a category structure tag in your permalink structure it is a text field structure tag so it should not come first in your custom permalink structure.\u00a0 A category structure tag used correctly will cause a slight loss of website perfomance.\u00a0 A category structure tag used incorrectly will cause a very significant loss of website performance.<\/td>\n<\/tr>\n<tr>\n<td>\u00a0<\/td>\n<td valign=\"top\"><strong><span style=\"font-size: large;\"><span style=\"color: #000066;\">\u2022<\/span><\/span><\/strong><\/td>\n<td>Your permalink structure should end with a structure tag that points to an individual post.\u00a0<\/td>\n<\/tr>\n<tr>\n<td>\u00a0<\/td>\n<td>\u00a0<\/td>\n<td>\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span style=\"color: #000066;\">WordPress Permalink Examples:<\/span><\/h2>\n<p>The numeric field permalink structure tags are:\u00a0 %year%, %monthnum%, %day%, %hour%, %minute%, %second% and\u00a0%post_id%<br \/> The text field permalink structure tags are:\u00a0 %postname%, %category%, %author% and %tag%<br \/> You could also create you own additional custom structure tags, but that would require creating your own custom taxonomy tags (coding work).<\/p>\n<p><strong><span style=\"color: #000066;\">1.\u00a0 Permalinks\u00a0for Best Performance:<\/span><\/strong><\/p>\n<p><strong>\/%year%\/<strong>%postname%\/<\/strong><\/strong><\/p>\n<p><strong>\/%year%\/<strong>%post_id%\/<\/strong><\/strong><\/p>\n<p><strong>\/%post_id%\/<strong>%postname%\/<\/strong><\/strong><\/p>\n<p>The examples above follow the 3 basic rules for creating a permalink that has the best performance:\u00a0 permalink structure starts with a numeric field structure tag, the category text field structure tag is not used at all and the permalink structure tags ends with structure tags that point to individual posts.<\/p>\n<p><span style=\"font-size: medium; color: #000066;\"><strong>NOTE: \u00a0As of WordPress 3.3 you no longer need to add a numeric Tag before a Text Tag for performance reasons. \u00a0So basically the best Custom Permalink Structure would now just be simply \/%postname%\/ for SEO purposes.<\/strong><\/span><\/p>\n<p><strong><span style=\"color: #000066;\">2.\u00a0 Permalinks for Best Performance and SEO:<\/span><\/strong><\/p>\n<p><strong>\/%year%\/<strong>%postname%\/<\/strong><\/strong><\/p>\n<p><strong>\/%post_id%\/<strong>%postname%\/<\/strong><\/strong><\/p>\n<p>The example above does not include the <strong>\/%year%\/%post_id%\/<\/strong> permalink structure because you would end up with an URL that would look like this \/2011\/1234.\u00a0 This would obviously not be a good permalink structure to use for SEO.<\/p>\n<p><strong><span style=\"color: #000066;\">3.\u00a0 Permalink for\u00a0Good Performance and SEO:<\/span><\/strong><\/p>\n<p><strong>\/%post_id%\/%category%\/<strong>%postname%\/<\/strong><\/strong><\/p>\n<p>AITpro.com is currently using this WordPress Permalink Structure even though it comes with a slight decrease in overall website performance.\u00a0 This permalink structure choice is for personal reasons and the slight decrease in website\u00a0performance is an acceptable tradeoff for our intended reasons.\u00a0 Using the <strong>%category%<\/strong> structure tag is not recommended.\u00a0 The recommended best permalink structures would be the examples shown in example 2.<\/p>\n<p><strong><span style=\"color: #000066;\">WordPress Permalink Reference Links<\/span><\/strong><\/p>\n<p><a title=\"WordPress Codex Using Permalinks\" href=\"http:\/\/codex.wordpress.org\/Using_Permalinks\"><span class=\"bluelink\">WordPress Codex &#8211; Using Permalinks<\/span><\/a><\/p>\n<p><span class=\"bluelink\"><a title=\"Permalink Category Tag\" href=\"http:\/\/ottopress.com\/2010\/category-in-permalinks-considered-harmful\/\" rel=\"nofollow\" target=\"_blank\">Why Not to Use Category in Permalinks<\/a><\/span><\/p>\n<p><span class=\"bluelink\"><a title=\"WordPress Permalinks Performance\" href=\"http:\/\/wpmu.org\/the-best-wordpress-permalink-structure-for-scaling-performance-and-seo\/\" rel=\"nofollow\" target=\"_blank\">WordPress Permalinks &#8211; Scaling, Performance and SEO<\/a><\/span><\/p>\n<h2><span style=\"color: #000066;\">Permalink Questions<\/span><\/h2>\n<p><strong><span style=\"color: #000066;\">Will changing my permalink structure break all my existing URL links?<\/span><\/strong><\/p>\n<p>No.\u00a0 Your existing links will be rewritten by WordPress to the\u00a0correct new URL&#8217;s.\u00a0 The rewrite may cost you a quarter of a second delay until your new links are re-indexed by the search engines.\u00a0 If you are using a sitemap plugin like Google XML Sitemaps then this process is sped up significantly.\u00a0 After you update your WordPress Permalinks\u00a0you may need to rebuild your sitemap.\u00a0 Check your sitemap to make sure the correct new URL&#8217;s are displayed in your sitemap and if not rebuild it.<\/p>\n<p><strong><span style=\"color: #000066;\">Will just updating my current custom permalink structure write to my existing\u00a0root .htaccess file for BulletProof Security?<\/span><\/strong><\/p>\n<p><strong>\u00a0<\/strong>Yes.\u00a0 If you already have a custom permalink structure that is working for you then just <span style=\"color: #000066;\"><strong>update your permalinks\u00a0FIRST<\/strong> <\/span>and\u00a0WordPress will write the .htaccess\u00a0code\u00a0to <strong><span style=\"color: #000066;\">Your Current\u00a0Root .htaccess File<\/span><\/strong>.\u00a0 Copy the htaccess code that WordPress writes to the active root .htaccess file (shown below) and paste it into the BulletProof secure.htaccess file (overwriting the existing # BEGIN WordPress&#8230; section of code only), click the Update File button to save\u00a0the\u00a0edit you just made to the secure.htaccess file\u00a0and then activate BulletProof Security Mode.<\/p>\n<p><span style=\"color: #000066;\"><strong>This is the ONLY\u00a0code\u00a0that you need to copy from your existing active root htaccess file to the BPS secure.htaccess file (if you have MU the code will look different &#8211; just copy that code to the secure.htaccess file):<\/strong><\/span><\/p>\n<pre>\u00a0\r\n# BEGIN WordPress\r\n\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n\r\n# END WordPress<\/pre>\n<p><strong><span style=\"color: #000066;\">Where and How do you change or update your WordPress Permalinks?<\/span><\/strong><\/p>\n<p>Click <span style=\"color: #000066;\"><strong>Settings<\/strong><\/span> &gt;&gt;&gt; <span style=\"color: #000066;\"><strong>Permalinks<\/strong><\/span> &gt;&gt;&gt; select <span style=\"color: #000066;\"><strong>Custom Structure<\/strong><\/span> radio button &gt;&gt;&gt; type in the permalink structure that you want to use &gt;&gt;&gt; click the <span style=\"color: #000066;\"><strong>Save Changes<\/strong><\/span> button.\u00a0 Now\u00a0go to the BulletProof Security File Editor and click on\u00a0the <span style=\"color: #000066;\"><strong>Your Current Root htaccess File<\/strong>\u00a0<\/span>menu tab and you will see the new .htaccess code that WordPress has written to Your Current Root htaccess File.\u00a0 If you do not see\u00a0that any new .htaccess code has been written to your existing root .htaccess then try refreshing your browser.\u00a0 Also double check to make sure that you are looking at the correct .htaccess file.<\/p>\n<p><a href=\"http:\/\/www.ait-pro.com\/aitpro-blog\/wp-content\/uploads\/2011\/01\/wordpress-permalinks.png\" rel=\"lightbox[2304]\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2319\" style=\"border: black 2px solid; padding: 2px;\" title=\"WordPress Permalink Structure\" src=\"http:\/\/www.ait-pro.com\/aitpro-blog\/wp-content\/uploads\/2011\/01\/wordpress-permalinks-300x237.png\" alt=\"WordPress Permalink Structure\" width=\"300\" height=\"237\" srcset=\"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-content\/uploads\/2011\/01\/wordpress-permalinks-300x237.png 300w, https:\/\/www.ait-pro.com\/aitpro-blog\/wp-content\/uploads\/2011\/01\/wordpress-permalinks.png 727w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong><span style=\"color: #000066;\">Modifying the custom permalink structure for WordPress installed on an IIS web hosting server<\/span><\/strong><\/p>\n<p>BulletProof Security should not be installed if you are using an IIS server for web hosting. IIS does not support mod_rewrite. Check with your web host and also read this WordPress Codex for more information on using <span class=\"bluelink\">Permalinks without mod_rewrite<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The best WordPress Permalink Structure\u00a0for best website performance and\u00a0including SEO keywords\u00a0in the URL follows these 3 simple rules below.\u00a0 This post is intended to point out the best permalink structures to use\u00a0and not to re-explain what has already been explained regarding WordPress permalinks on the 3 reference links below.\u00a0 I will be explaining custom permalinks [&hellip;]<\/p>\n","protected":false},"author":167,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[13],"tags":[341,339,338,340,89],"class_list":["post-2304","post","type-post","status-publish","format-standard","hentry","category-wordpress-tips-tricks-fixes","tag-best-custom-permalinks","tag-best-permalink-structure","tag-best-wordpress-permalinks","tag-permalink-best-performance","tag-wordpress-permalinks"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts\/2304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/users\/167"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/comments?post=2304"}],"version-history":[{"count":0,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts\/2304\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/media?parent=2304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/categories?post=2304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/tags?post=2304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}