{"id":41710,"date":"2024-09-11T21:43:19","date_gmt":"2024-09-11T18:43:19","guid":{"rendered":"https:\/\/coma.lv\/2024\/09\/11\/how-to-enable-custom-permalinks-on-a-local-wordpress-server\/"},"modified":"2024-09-11T21:43:19","modified_gmt":"2024-09-11T18:43:19","slug":"how-to-enable-custom-permalinks-on-a-local-wordpress-server","status":"publish","type":"post","link":"https:\/\/coma.lv\/en\/2024\/09\/11\/how-to-enable-custom-permalinks-on-a-local-wordpress-server\/","title":{"rendered":"How to Enable Custom Permalinks on a Local WordPress Server"},"content":{"rendered":"\n<p style=\"text-align: left;\">There is a problem that when our users work with WordPress installations on a local server, they cannot get the permalink rewrite rules to work. Even though they tried to enable custom permalinks, they still got a 404 error.<\/p>\n<p style=\"text-align: left;\">To get rid of this problem, you need to enable the rewrite module in your WAMP, XAMPP or MAMP installation. Start by finding the WAMP icon in the taskbar and go to Apache \u00bb Apache modules. This brings up a long list of modules that you can enable or disable. Find the \u201crewrite_module\u201d module and tick it.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35706 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910.jpg\" alt=\"WordPress\" width=\"1629\" height=\"984\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910.jpg 1629w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910-300x181.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910-1030x622.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910-768x464.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910-1536x928.jpg 1536w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910-1500x906.jpg 1500w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/07\/Ekranuznemums-2025-07-06-025910-705x426.jpg 705w\" sizes=\"auto, (max-width: 1629px) 100vw, 1629px\" \/><\/p>\n<p style=\"text-align: left;\">After that, your custom permalink structure should work immediately.<\/p>\n<p style=\"text-align: left;\">Alternatively, you can edit the local server&#8217;s configuration directly. Go to the Apache folder, then to the \u201cconf\u201d configuration folder. Find the httpd.conf file. Find this line in it:<\/p>\n<p style=\"text-align: left;\"><strong>#LoadModule rewrite_module modules\/mod_rewrite.so<\/strong><\/p>\n<p style=\"text-align: left;\">Just remove the hash sign at the beginning, so that it looks like this:<\/p>\n<p style=\"text-align: left;\"><strong>LoadModule rewrite_module modules\/mod_rewrite.so<\/strong><\/p>\n<hr \/>\n<p style=\"text-align: left;\"><em>Our specialization is WordPress website development and maintenance. Contact us for a free consultation \u2014 <a href=\"mailto:vadim@coma.lv\">vadim@coma.lv<\/a>, <a href=\"tel:+37129394520\">+371 29394520<\/a><\/em><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>There is a problem that when our users work with WordPress installations on a local server, they cannot get the permalink rewrite rules to work. Even though they tried to enable custom permalinks, they still got a 404 error. To get rid of this problem, you need to enable the rewrite module in your WAMP, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38270,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1225,1407],"tags":[],"class_list":["post-41710","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-tutorials"],"_links":{"self":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/comments?post=41710"}],"version-history":[{"count":0,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41710\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media\/38270"}],"wp:attachment":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media?parent=41710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/categories?post=41710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/tags?post=41710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}