{"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":[],"class_list":["post-144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"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 Then I checked the .htaccess file in the WordPress root directory. # BEGIN WordPressRewriteEngine On RewriteBase \/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<meta name=\"msvalidate.01\" content=\"F5B964E0B63F681BBDE95AB72193D75E\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#article\",\"name\":\"WordPress permalinks not working error 404 \\u2013 reindexing - Linux How To\",\"headline\":\"WordPress permalinks not working error 404 &#8211; reindexing\",\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2010\\\/07\\\/wordpress-permalink.jpg\",\"width\":400,\"height\":164},\"datePublished\":\"2010-07-05T06:45:00+00:00\",\"dateModified\":\"2017-10-31T07:02:07+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#webpage\"},\"articleSection\":\"WORDPRESS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/wordpress#listItem\",\"name\":\"WORDPRESS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/wordpress#listItem\",\"position\":2,\"name\":\"WORDPRESS\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/wordpress\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#listItem\",\"name\":\"WordPress permalinks not working error 404 &#8211; reindexing\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#listItem\",\"position\":3,\"name\":\"WordPress permalinks not working error 404 &#8211; reindexing\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/wordpress#listItem\",\"name\":\"WORDPRESS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\",\"name\":\"Linux How To\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2021\\\/06\\\/MelB.png\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working\\\/#organizationLogo\",\"width\":320,\"height\":320},\"image\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#webpage\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working\",\"name\":\"WordPress permalinks not working error 404 \\u2013 reindexing - Linux How To\",\"description\":\"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 Then I checked the .htaccess file in the WordPress root directory. # BEGIN WordPressRewriteEngine On RewriteBase \\\/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2010\\\/07\\\/wordpress-permalink.jpg\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working\\\/#mainImage\",\"width\":400,\"height\":164},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wordpress\\\/wordpress-permalinks-not-working#mainImage\"},\"datePublished\":\"2010-07-05T06:45:00+00:00\",\"dateModified\":\"2017-10-31T07:02:07+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"name\":\"Linux How To\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"WordPress permalinks not working error 404 \u2013 reindexing - Linux How To","description":"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 Then I checked the .htaccess file in the WordPress root directory. # BEGIN WordPressRewriteEngine On RewriteBase \/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .","canonical_url":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"msvalidate.01":"F5B964E0B63F681BBDE95AB72193D75E","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#article","name":"WordPress permalinks not working error 404 \u2013 reindexing - Linux How To","headline":"WordPress permalinks not working error 404 &#8211; reindexing","author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2010\/07\/wordpress-permalink.jpg","width":400,"height":164},"datePublished":"2010-07-05T06:45:00+00:00","dateModified":"2017-10-31T07:02:07+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#webpage"},"isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#webpage"},"articleSection":"WORDPRESS"},{"@type":"BreadcrumbList","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","position":1,"name":"Home","item":"https:\/\/www.melberi.com\/linuxadmin\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/wordpress#listItem","name":"WORDPRESS"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/wordpress#listItem","position":2,"name":"WORDPRESS","item":"https:\/\/www.melberi.com\/linuxadmin\/category\/wordpress","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#listItem","name":"WordPress permalinks not working error 404 &#8211; reindexing"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#listItem","position":3,"name":"WordPress permalinks not working error 404 &#8211; reindexing","previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/wordpress#listItem","name":"WORDPRESS"}}]},{"@type":"Organization","@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization","name":"Linux How To","url":"https:\/\/www.melberi.com\/linuxadmin\/","logo":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2021\/06\/MelB.png","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working\/#organizationLogo","width":320,"height":320},"image":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author","url":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#webpage","url":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working","name":"WordPress permalinks not working error 404 \u2013 reindexing - Linux How To","description":"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 Then I checked the .htaccess file in the WordPress root directory. # BEGIN WordPressRewriteEngine On RewriteBase \/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#website"},"breadcrumb":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#breadcrumblist"},"author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"creator":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2010\/07\/wordpress-permalink.jpg","@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working\/#mainImage","width":400,"height":164},"primaryImageOfPage":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/wordpress\/wordpress-permalinks-not-working#mainImage"},"datePublished":"2010-07-05T06:45:00+00:00","dateModified":"2017-10-31T07:02:07+00:00"},{"@type":"WebSite","@id":"https:\/\/www.melberi.com\/linuxadmin\/#website","url":"https:\/\/www.melberi.com\/linuxadmin\/","name":"Linux How To","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"}}]}},"aioseo_meta_data":{"post_id":"144","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-03-11 16:26:20","updated":"2026-10-21 20:48:28","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"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}]}}