{"id":3392,"date":"2026-03-31T10:22:02","date_gmt":"2026-03-31T08:22:02","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3392"},"modified":"2026-03-31T10:24:37","modified_gmt":"2026-03-31T08:24:37","slug":"permalink-in-local-wordpress","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3392","title":{"rendered":"Permalink in local wordpress"},"content":{"rendered":"\n<p>It could happen that wordpress in localhost doesn&#8217;t see textual permalink, such as the article name, or the like, and see only \u201dsimple\u201d permalink with a final suffix such as ?p=123.<\/p>\n\n\n\n<p>The problem is an apache problem. To fix it, you have to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>modifying the apache config file, with a name such as apache2.conf or another name, depending of your S.O., by adding something like<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \/var\/www\/your-wordpress-path\/>\n\tOptions Indexes FollowSymLinks\n\tAllowOverride <strong>all<\/strong>\n\tRequire all granted\n&lt;\/Directory><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>then you have to do these <strong>bash commands<\/strong> \u00a0(in a terminal):<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod rewrite\nsudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>then you have to put in your (root wordpress) folder an .htaccess file with a content like:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteRule .* - &#91;E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\nRewriteBase \/your-wordpress-path\/\nRewriteRule ^index\\.php$ - &#91;L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/your-wordpress-path\/index.php &#91;L]\n&lt;\/IfModule&gt;\n\nyour-wordpress-path is the path <strong>following<\/strong> http:\/\/localhost, so don't have to write <a href=\"http:\/\/localhost\">http:\/\/localhost<\/a><\/code><\/pre>\n\n\n\n<p>At this point you should be able to set a textual permalink, after setting it, save it, and try.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It could happen that wordpress in localhost doesn&#8217;t see textual permalink, such as the article name, or the like, and see only \u201dsimple\u201d permalink with a final suffix such as ?p=123. The problem is an apache problem. To fix it, you have to: At this point you should be able to set a textual permalink, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=3392\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;Permalink in local wordpress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1003,870,566],"tags":[990,488],"class_list":["post-3392","post","type-post","status-publish","format-standard","hentry","category-apache","category-blogs","category-webmaster","tag-permalink","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3392"}],"version-history":[{"count":2,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3392\/revisions"}],"predecessor-version":[{"id":3395,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3392\/revisions\/3395"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}