• Hi,

    Here are my domain details:
    Link: https://www.thatshoeguy.com
    Webhost: Hostgator
    Type/Platform: Windows (IIS)

    I’ve been trying to get my custom/pretty permalinks working but when I save the changes and access the home page, it gives me a 404. Here’s what my web.config looks like:

    <?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" />
            </rule>
        </rules>
    </rewrite>
    
      </system.webServer>
    </configuration>

    I’ve been reading up everywhere including the support forums but it’s not working for me. I also checked the permissions on my web.config and I have Full Read, Write, Execute rights.

    As a result, I’m stuck with the default “Plain” permalinks. I can’t even change it to other permalink options like “postname”, “day and name”, “month and name”, etc. What could possibly be wrong here? I reached out to the hostgator support team but they pointed me back to WordPress support instead.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to make sure you have .htaccess file in the root of the site with default content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    More info here

    Hope that helps.

    Thread Starter Cyn1c

    (@cyn1c)

    Hello @larsonreever and thanks for your reply.

    I’m on Windows hosting so I’m not sure if .htaccess would work? I think you meant web.config instead?

    I’ve tried that but it’s not working. I’m pretty sure I’m missing a step somewhere but I can’t quite nail it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalinks Not Working’ is closed to new replies.