• I think I have found a bug. I am using the latest version of WP for my website. When I create a title of a post as follows “RSHTOTF! – Mute BBM Groups – UPDATED!” as you can see some how I have 2 different dashes in there, one is a short dash, one is a long dash. This is just cosmetic normally but the real problem is that when WP creates a permalink to “https://domain.com/rshtotf-–-mute-bbm-groups/” this causes a 404. After doing some testing I found out that the long dash was the issue. As soon as I remove that from the title and recreate the permalink the link works perfect. I can understand the reason this cannot exist in the URL, but when I create the post title which the permalink is created from WP should remove it just like it does to other typical special characters, correct? For example if I add !@#$%^&*() or any other special chr to the end of my title it does not get put in the permalink but this long dash does. Just wondering what other peoples results are. I have pasted them below so others can test.

    Long Dash –
    Short Dash –

    It would seem that this post box will only let me paste normal ASCII chrs and so the above dashes look all the same. You will have to do testing with the following HTML codes.

    – en-dash – (150 or 8211)
    — em-dash — (151 or 8212)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Interesting. I spun it up on my test site and it seems to work okay.

    https://test.ipstenu.org/2011/08/rshtotf-%E2%80%93-mute-bbm-groups-updated/

    UGLY but okay.

    Thread Starter caspan

    (@caspan)

    Okay well that is just weird.. It wont work for me no matter how many times I try.

    Could it be that i am on an IIS7 server? would that have anything to do with URL rewrites

    for reference my web.config is below

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <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>
    </system.webServer>
    </configuration>

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Could it be that i am on an IIS7 server? would that have anything to do with URL rewrites

    Oh yes, yes that would do it pretty easily :/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug – Title of Post Causes The Permalink To 404’ is closed to new replies.