• Resolved Teampots

    (@teampots)


    Hello,

    I have recently moved from a Linux host to hosting my WordPress site within a Windows server environment.

    I am having some exceptionally weird issues with Pretty Permalinks, specifically when a post has multiple pages. If a page has one or more pages, the link from the post does not work it says there is a redirect issue at play.

    However if you add a trailing slash manually the page loads fine. For example:

    http://www.daveplays.co.uk/reviews/sapphire-r7-260x-review/436

    http://www.daveplays.co.uk/reviews/sapphire-r7-260x-review/436/2

    http://www.daveplays.co.uk/reviews/sapphire-r7-260x-review/436/2/

    I noticed in my permalink structure that it was set to /%category%/%postname%/%post_id%

    However if I set it to
    /%category%/%postname%/%post_id%/ which adds the trailing slash the page will still not load, until you remove the trailing slash

    My web.config file which IIS picks up fine looks like:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    	<system.webServer>
    		<staticContent>
    			<remove fileExtension=".svg" />
    			<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
    		</staticContent>
            <rewrite>
    <rules>
    <rule name="WordPress Rule" stopProcessing="true">
    <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?page_id={R:0}" />
    </rule>
    </rules>
    </rewrite>
    	</system.webServer>
    </configuration>

    If I use IIS to force a trailing slash I run into the same issue. If I use any other permalink structure than the default ugly one the page links do not work.

    Has anyone experienced this issue?

Viewing 1 replies (of 1 total)
  • Thread Starter Teampots

    (@teampots)

    SOLVED – Issue related to the Site Address (URL) having capitals whilst the WordPress Address (URL) was all lowercase.

Viewing 1 replies (of 1 total)

The topic ‘Permalink Problems – Multi Page Posts’ is closed to new replies.