• I am using Godaddy shared hosting and whenever I change my permalink structure to post name I am getting this error whenever I access

    https://www.domain.com/post-name

    For example of errors you can see my page here

    https://www.investland.com.au/faqs

    I have changed the web.config file and still can not get it to work. Here is my config file starting with <configuration>

    *************************************************************
    <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>

    Any help would be greatly appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Check your version info first: GoDaddy Support – Microsoft URL Rewrite Module

    Then there’s this info – wordpress-specific rewrite rule example included – (some minor differences noted in your configuration example):

    https://www.iis.net/learn/extensions/url-rewrite-module/enabling-pretty-permalinks-in-wordpress

    If that doesn’t do the trick you might contact GoDaddy support for, well, you know.. support. ?? They should be able to set it straight fairly quickly.

    Hey GoDaddyWindowsHosting, solid advice from ClaytonJames. I didn’t see that this was marked as resolved, so if you’re still havin difficulty, feel free to zap a message to me directly [email protected]. ??

    Hey there GodaddyWindowsHosting – I was taking a look at the situation and I happened to notice the site did not throw any errors when using https://www.investland.com.au/index.php/faqs/

    This leads me to believe there is another rewrite rule, possibly in a different web.config file, that is influencing how the redirect is done. I would recommend adding a <clear /> line directly under your <rules> tag – Here is an example of how I would recommend you form the web.config:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <clear />
    <rule name=”wordpress” patternSyntax=”Wildcard”>
    <match url=”*”/>
    <conditions>
    <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true”/>
    <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true”/>
    </conditions>
    <action type=”Rewrite” url=”index.php”/>
    </rule></rules>
    </rewrite>
    </system.webServer>
    </configuration>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Godaddy Windows Shared Hosting web.config file permalink structure’ is closed to new replies.