1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 403 IE Users

Discussion in 'Troubleshooting and Problems' started by rages4calm, Nov 30, 2013.

  1. rages4calm

    rages4calm Member

    This is very weird and I can't seem to figure out as to why some people who view our website can see and work everything fine while others keep running into 403 and sometimes even the 404 error but mostly 403 forbidden.

    Furthermore if you use internet explorer you get 403 error.
    http://www.uoforum.com

    Our server is a windows server so not sure if the .htaccess does anything but here is the web.config file.

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
    <defaultDocument>
          <files>
            <clear />
            <add value="index.php" />
          </files>
        </defaultDocument>
        <rewrite>
          <rules>
            <clear />
            <rule name="CanonicalHostNameRule1">
              <match url="(.*)" />
              <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                <add input="{HTTP_HOST}" pattern="^www\.uoforum\.com$" negate="true" />
              </conditions>
              <action type="Redirect" url="http://www.uoforum.com/{R:1}" />
            </rule>
            <rule name="XenForo Rule 1" stopProcessing="true">
              <match url="^.*$" />
              <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
              </conditions>
              <action type="None" />
            </rule>
            <rule name="XenForo Rule 2" stopProcessing="true">
              <match url="^(data|js|styles|install)" />
              <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
              <action type="None" />
            </rule>
            <rule name="Xenforo Rule 3" stopProcessing="true">
              <match url="^.*$" />
              <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
              <action type="Rewrite" url="index.php" />
            </rule>
            <rule name="Xenforo Rule 4" stopProcessing="true">
              <match url="^(.*)$" ignoreCase="false" />
              <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
              </conditions>
              <action type="Rewrite" url="index.php/{R:1}" />
            </rule>
          </rules>
        </rewrite>
      </system.webServer>
    <system.web>
            <customErrors>
                <error redirect="http://www.uoforum.com/" statusCode="403" />
            </customErrors>
        </system.web>
    
    </configuration>
     
  2. Adam Howard

    Adam Howard Well-Known Member

    What is your htaccess file?

    edit: Windows server.

    I know next to nothing about remote management on windows as a web server (except to hack them, never to fix them). I'm tempted to tell you to switch to a real server using linux.

    I'm unsure if anyone here is using a Windows Server (I'm sure there are those who do). But I've also taken steps to post this else where in an effort to find you a solution.

    I'm using Firefox on Debian and I too got a 403
     
    Last edited: Nov 30, 2013
  3. rages4calm

    rages4calm Member

    Yeah half our population can access the forum fine other half can't. Those with IE definately can't.
     
  4. Adam Howard

    Adam Howard Well-Known Member

    It looks like the web.config is set to spit out a 403 error whenever the site has a problem.

    Can you temporarily comment out the <system.web> to </system.web> code and see if the site gives a different error?

    You might need to stop and start the site for the change to take effect.
     
  5. rages4calm

    rages4calm Member

    Commented out that area restarted the web site. Still the same problem.
     
  6. Mike

    Mike XenForo Developer Staff Member

    See the web.config here: http://xenforo.com/help/friendly-urls/

    Notably, this line may be important:
    Code:
    <httpErrors existingResponse="PassThrough" />
    (I did have one server that had problems with that -- I believe it was set in the IIS config to be non-overrideable.)
     
    Adam Howard likes this.
  7. rages4calm

    rages4calm Member

    That fixed it!
     

Share This Page