#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Windows iis 7 - web.config file


    Hello,
    I am new to the windows web server and have not the knowledge of syntax for web.config file.

    We have under Windows IIS7 an Wordpress installation and for that wordpres generated few lines for a web.config file.
    Here is the content of the web.config file:

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

    1. with this content our /stats directory and Webstats is no more accessible - we are getting an error 500.
    In the stats directory is dynamically generated the reports and an index.php file is in this directory which points to the other files in the directory.

    2. we need more rules to create some permanent redirect 301 for the following subfiles:

    domain.com/article-details.php --------->>>>> domain.com
    and
    domain.com/content.php --------->>>>> domain.com

    This two points we need some help.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2009
    Posts
    166
    Rep Power
    6
    Hello,

    The web.config version depends on the ASP.NET version. not on IIS/Windows version.

    Regards
    http://www.windowshostingasp.net/ - Free ASP.NET Web hosting resources and information.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Question


    Originally Posted by HostingASPNet
    Hello,

    The web.config version depends on the ASP.NET version. not on IIS/Windows version.

    Regards
    We have ASP.Net 2.0/3.0/3.5

    Do you have an idea how to write a web.config file that the rewrite rules of wp are working and too the /stats directory in the root folder is accessible???

IMN logo majestic logo threadwatch logo seochat tools logo