Wednesday, September 23, 2020

Permalink Change Not Working on Wordpress with Godaddy Windows Hosting

 Permalink Change - Not Working - Error 404


If you have Windows Web Hosting from GoDaddy & Wordpress site, you are likely to stumble upon this issue. 

All your pages open with PAGE ID and not with the given name. e.g. http://domain.com/?page_id12 It should look something like this & this is what we will achieve. http://domain.com/home

1st Step:

  1. You should always backup your site before making any changes.
  2. Log in to WordPress.
  3. Go to Settings > Permalinks
  4. Choose the permalink structure you prefer, or create a custom one. Note: OPTIONAL: You can also create a structure for your categories and tags.
  5. Click Save Changes.
  6. The URL on your website's pages should display the permalink settings you selected.
Modify it as below - You are likely to get an issue and an error 404 after that. 


Not To Worry

Now Let's perform this steps to fix this issue. 

Plesk/Windows

  1. Locate the web.config file.

    Note: If you do not have a web.config file then you can create one with your FTP client, or create one on your local computer and upload it to the hosting account.

  2. Edit the web.config file, and add the following if it is not already present to the configuration section:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <rewrite>
          <rules>
            <rule name="WordPress Rule" stopProcessing="true">
              <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>
  3. Save the file, and upload it to your hosting account.

Your Issue Should get fixed now, Share your comment if that helps you.

No comments:

Post a Comment

Windows Administrator Level 1 Interview Question & Answers

 Windows Administrator Level 1 Interview Question & Answers What is an active directory?  An Active Directory (AD) is a directory ...