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.
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.
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.
“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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With