• Hi,

    I have been struggling with a problem for a couple days now and haven’t been able to find a solution anywhere else. My problem is that whenever I change the permalinks settings to something other than the default, the settings page becomes un-accessible and returns a 502.2 error saying the heading is missing from the http request. Interestingly, even though the settings page is broken, the permalink settings and structure are accurately applied to my site and I am able to navigate the site just fine. I have tried removing all the plugins as well as changing back to the default theme, yet the settings page is still broken. I can re-access the settings page if I go into the database and modify the permalinks_structure value back to the default. Prior to upgrading to wp 3.6, we faced a similar scenario, except the permalinks page would be blank rather than return the 502.2 error, however the settings again were applied to the site correctly.

    Any help solving this problem would be greatly appreciated.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • What does your htaccess file look like?

    Thread Starter JasonI

    (@jasoni)

    Options -Indexes
    Options +FollowSymLinks

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    However, I should note that the server is Windows 2008 R2 with IIS 7. my web.config file has the following rewrite rules.

    <rewrite>
    <rules>
    <rule name=”Main Rule” stopProcessing=”true”>
    <match url=”.*” />
    <conditions logicalGrouping=”MatchAll”>
    <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
    <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
    </conditions>
    <action type=”Rewrite” url=”index.php/{R:0}” />
    </rule>
    </rules>
    </rewrite>

    Thread Starter JasonI

    (@jasoni)

    One more bit of information that I just stumbled upon. If I delete the .htaaccess file, and uninstall all of the plugins, I can then access the settings page exactly one time. After that time, it create a new .htaacess file, which looks as follows. And breaks the settings page again.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress

    EDIT: This method of accessing the settings page only worked reliably 5 times. For somereason, it no longer seems to be working. Hopefully it doesn’t cause confusion, but I feel it is still an interesting piece to the puzzle as to why it would have worked a few times to begin with.

    The htaccess file does nothing with a windows server as far as I know.

    Does this happen with the default theme and no plugins?

    Thread Starter JasonI

    (@jasoni)

    Yes it happens with the default theme and no plugins.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permalinks Settings page 502.2 error’ is closed to new replies.