Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pretty Permalink Structure of wordpress not working on Godaddy host With windows hosting and IIS Server

enter image description here

Above picture shows my problem, Go through many of the blogs, Godaddy support, stack overflow questions. FACING THIS PROBLEM FROM ONE MONTH, So at last Stack community to help.

There is no web.config file in my root folder but .htaccess file whom change does'nt effect permalinks. what should i do for creating this sort of permalink structure www.example.com/category/postname as my current permalink structure is http://www.example.com/?page_id=104 details of hosting server Godaddy with windows hosting enviornment and iis 7 server. Godaddy don'nt have any knowledge about this in there help center.

like image 538
Zahid Khan Avatar asked Sep 27 '13 04:09

Zahid Khan


People also ask

How do I fix Permalinks on WordPress Godaddy?

Sign in to WordPress. In the left-side menu, select Settings > Permalinks. Under Permalink Settings, select a different permalink structure, and then select Save Changes. This will resolve the 404 error.

How do I find my permalink on WordPress Godaddy?

Sign in to WordPress. In the left-side menu, select Settings and then select Permalinks. Select the permalink structure you prefer or select Custom Structure and create a custom one. Note: OPTIONAL: You can also create a structure for your categories and tags.

What is a WordPress permalink?

“WordPress Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings.” Each page in your site (including posts, pages, archive pages, and other pages such as the 404 page) will have its own permalink.


1 Answers

You need to create a web.config file in the root directory of your WordPress installation (the same directory as the .htaccess file), and add the following code in web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
            <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>

This should enable pretty permalinks in WordPress with URL Rewrite running on IIS.

like image 168
Uzair Sajid Avatar answered Oct 08 '22 23:10

Uzair Sajid