XF 1.2 Too many redirects


Well-known member
This is when using IIS 7.5.

I'm following the instructions here to enable friendly URLs by putting the following into a web.config file. It seems to work correctly, apart from when visiting the Index page where it fails to load the page because of "Too many redirects".

I'm using a subdomain as my URL, hopefully without an additional directory (either 'community' or 'forum').

<?xml version="1.0" encoding="UTF-8"?>
                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^.*$" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                    <action type="None" />
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url="^(data|js|styles|install)" />
                    <action type="None" />
                <rule name="Imported Rule 3" stopProcessing="true">
                    <match url="^.*$" />
                    <action type="Rewrite" url="index.php" />
        <httpErrors existingResponse="PassThrough" />


XenForo developer
Staff member
We'd need to see this in place (to see what redirect is being run). There's no redirect from the rewrite rules in web.config, but there is URL canonicalization stuff in XF that can trigger a redirect.


Well-known member
Thanks - it actually seems to work now.

I was using Safari which gave that behaviour, but when I tried on another browser it worked fine.