{"id":144,"date":"2010-07-05T06:45:00","date_gmt":"2010-07-05T06:45:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/wordpress-permalinks-not-working"},"modified":"2017-10-31T07:02:07","modified_gmt":"2017-10-31T07:02:07","slug":"wordpress-permalinks-not-working","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working","title":{"rendered":"WordPress permalinks not working error 404 &#8211; reindexing"},"content":{"rendered":"<p>Word press site was working only in default permalink settings. After modifying it to month and name, page not found error occurred<\/p>\n<div dir=\"ltr\" style=\"text-align: left;\">\n<h2><b><u>WordPress Permalinks not working : error 404<\/u><\/b><\/h2>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2010\/07\/wordpress-permalink.jpg\" alt=\"\" width=\"500\" height=\"203\" border=\"0\" \/><\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">Then I checked the .htaccess file in the WordPress root directory.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"># BEGIN WordPressRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule . \/index.php [L]# END WordPress<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">Everything was perfect, but the site links were not working<\/div>\n<div style=\"text-align: left;\">Then I modified the apache httpd.conf file and made the following changes.<\/div>\n<div style=\"text-align: left;\">Enable mod_rewrite (Already enabled)<\/div>\n<p>LoadModule rewrite_module modules\/mod_rewrite.so<br \/>\nEnable <b>Follow symbolic links <\/b>option and <b>AllowOverride <\/b>option <b><br \/>\n<\/b><\/p>\n<pre style=\"background-color: #cccccc;\"><b>&lt; Directory \/ &gt;\r\n    Options FollowSymLinks\r\n    AllowOverride All\r\n &lt; \/Directory &gt; <\/b><\/pre>\n<p>Everything started working<\/p>\n<p><b>httpd.confg file\u00a0<\/b><\/p>\n<p>&nbsp;<\/p>\n<div style=\"background-color: #cccccc;\"><\/div>\n<div style=\"background-color: #cccccc;\">&lt; VirtualHost * &gt;<br \/>\nDocumentRoot \/var\/www\/html\/wordpress\/<br \/>\nServerName myserver.com<br \/>\nRewriteEngine On<br \/>\nRewriteCond %{REQUEST_METHOD} ^TRACE<br \/>\nRewriteRule .* &#8211; [F]<br \/>\n&lt; Directory &#8220;\/var\/www\/html\/wordpress\/&#8221; &gt;<br \/>\nallow from all<br \/>\n<b>Options FollowSymLinks<\/b> -Indexes<br \/>\n<b> AllowOverride All<\/b><br \/>\n&lt; \/ Directory &gt;<br \/>\nIndexOptions<br \/>\n&lt; \/ VirtualHost &gt;<\/div>\n<p>#service httpd restart<br \/>\nRestart apache<\/p>\n<div style=\"color: #999999;\"><\/div>\n<div style=\"color: #999999; text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Word press site was working only in default permalink settings. After modifying it to month and name, page not found error occurred WordPress Permalinks not working : error 404 &nbsp;&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":353,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/144"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":5,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":778,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/144\/revisions\/778"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media\/353"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}