cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wordpress Permalinks do not work on Windows Hosting

I have GoDaddy Windows hosting with a few WordPress sites.  WordPress pretty permalinks, e.g. 

http://example.com/post-name/

used to work when I setup the sites but after GoDaddy made some recent updates it caused all my pages on all my sites to get 404 errors.  The only way I was able to get my sites back up was to change the Permalink settings to "Ugly":

http://example.com/?p=123

Which works but is not good because it hurts the SEO is just, well, ugly.

 

I found this question and solution from another customer:

https://www.godaddy.com/community/Managing-WordPress/404-error-on-all-my-pages/m-p/8800#M650

 

However, that solution does not apply because that customer has Linux hosting.

I did some research and according to Microsoft we need to have URL Rewrite installed:

https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/enabling-pretty-permalinks-in-wor...

 

I did try adding the rewrite rule shown in the above article to my web.config, but did not make a difference, I still got the 404 errors.  Therefore GoDaddy must not have URL Rewrite installed on IIS.

As I said at the beginning, the pretty permalinks did work originally when I set up the WordPress sites, but GoDaddy must forgot to install URL Rewrite when they upgraded to IIS 7.

Can we get this fixed and get our pretty permalinks working again on Windows?

Thanks,

Ray Wampler

 

 

3 REPLIES 3

Re: Wordpress Permalinks do not work on Windows Hosting

I too have this same issue. Nothing works as mine is Windows IIS hosting. Have the GoDaddy folks confirmed on this one ? And if that is true, does it mean we have to change our hosting environment to Linux ??? No other way out ?

New

Re: Wordpress Permalinks do not work on Windows Hosting

I managed to get this working after several hours of frustration! Smiley Happy

The first problem I had was that I got a Fatal Error when attempting to update permalinks, I fixed this by just updating word press. 

 

Next upon changing permalinks, wordpress would say, you need to update your web.config file. The home page would work, but it broke all the links on the website and all pages appeared as a 404 not found. 

 

The solution was to manually create a web.config file in my root directy, the one where wordpress is installed, same directory that contains wp-admin and wp-contents.

 

I had to try several versions, but finally found this one that worked. Also, you can edit the link thats displayed on a page by page basis when editing the page in wordpress.

 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Re: Wordpress Permalinks do not work on Windows Hosting

I have the same Permalink problems. 

PLAIN (no permalinks) works for me.

PATHINFO version of permalinks with index.php works for me.

PRETTY permalinks (mod_rewrite) does not work in any manner.  Seems particular to Apache.

 

I tried your version of web.config (I have also tried various other flavors) and this does not work.

 

The sucky thing is that some WordPress plugins (e.g. BuddyPress) require permalinks so I can't use them currently.

 

I'm on IIS 7.