{"id":46,"date":"2025-03-19T09:22:33","date_gmt":"2025-03-19T09:22:33","guid":{"rendered":"https:\/\/www.24x7serverguard.com\/blog\/?p=46"},"modified":"2025-03-19T09:22:33","modified_gmt":"2025-03-19T09:22:33","slug":"wordpress-permalink-problem-in-windows-server","status":"publish","type":"post","link":"https:\/\/www.24x7serverguard.com\/blog\/wordpress\/wordpress-permalink-problem-in-windows-server\/","title":{"rendered":"WordPress permalink problem in windows server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you are using IIS 7 and have admin rights on your server, you can use Microsoft\u2019s\u00a0<a href=\"http:\/\/learn.iis.net\/page.aspx\/460\/using-url-rewrite-module\/\">URL Rewrite Module<\/a>\u00a0instead. Though not completely compatible with\u00a0mod_rewrite<br>, it does support WordPress\u2019s pretty permalinks. Once installed, open the\u00a0<strong>web.config<\/strong>\u00a0file in the WordPress folder and add the following rule to the\u00a0<strong>system.webServer<\/strong>\u00a0element<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;rewrite&gt;\n    &lt;rules&gt;\n        &lt;rule name=\"Main Rule\" stopProcessing=\"true\"&gt;\n &lt;match url=\".*\" \/&gt;\n&lt;conditions logicalGrouping=\"MatchAll\"&gt;\n&lt;add input=\"{REQUEST_FILENAME}\" matchType=\"IsFile\" negate=\"true\" \/&gt;\n&lt;add input=\"{REQUEST_FILENAME}\" matchType=\"IsDirectory\" negate=\"true\" \/&gt;\n&lt;\/conditions&gt;\n&lt;action type=\"Rewrite\" url=\"index.php\/{R:0}\" \/&gt;\n        &lt;\/rule&gt;\n    &lt;\/rules&gt;\n&lt;\/rewrite&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using IIS 7 and have admin rights on your server, you can use Microsoft\u2019s\u00a0URL Rewrite Module\u00a0instead. Though not completely compatible with\u00a0mod_rewrite, it does support WordPress\u2019s pretty permalinks. Once installed, open the\u00a0web.config\u00a0file in the WordPress folder and add the following rule to the\u00a0system.webServer\u00a0element<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}