• I’ve just done my first 2.6.5 install and I am seeing a weird problem for Pages.
    When I use any permalink structure other than the default (the default works fine) I get a double slash at the front of the path that forces a 404

    eg https://www.example.com//contact/
    when the Page slug is contact
    (note the two slashes immediately prior to the path)

    When I manually correct the url in the address bar to a single slash, wordpress 301s it to the double slash again.

    Most bemused by this.
    I’ve installed on two different servers so I don’t think its a local problem and I’ve activated various themes, and they all do the same thing.
    I’ve just dropped a copy of 2.6.1 in and I don’t see the same problem.
    The only common factor seems to be 2.6.5

    Has anyone else seen this problem and solved it??

Viewing 6 replies - 1 through 6 (of 6 total)
  • In your dashboard settings, what is your WordPress URL and blog URL? Are you using any rewrite plugins or added trailing slash rewrites in your .htaccess?

    Thread Starter leadegroot

    (@leadegroot)

    Thanks for answering iridiax! ??

    My wordpress url and blog url seem ok – neither has a slash on the end ( I didn’t change it from install)
    ie they are both https://www.example.com

    No plugins at all yet – haven’t gotten that far through the process

    Haven’t touched the .htaccess beyond chmod to allow the dashboard to write to it

    ??

    I take it other people are installing 2.6.5 with non-default permalinks and not seeing this on their Pages? ??

    Thread Starter leadegroot

    (@leadegroot)

    Well, my current fix is to redo the Pages as Posts and make a special cat for them that doesn’t get linked to elsewhere

    Thread Starter leadegroot

    (@leadegroot)

    ok, I have figured out the cause, and I guess I may as well document what it was.

    I had put my pages as children of two pages, ‘top’ and ‘bottom’ (for showing in two groups at the top and bottom of the nav)
    Somehow those parent pages didn’t get slugs – don’t know how, I created them through the wordpress interface.
    This meant wordpress was trying to insert an empty value into the URL (oddly enough, this didn’t work) and the pages were unreachable.

    I’m new to WordPress but having the same problem. I did my install into mydomain.com/customdirectory. When I do certain functions, I end up with URLs like mydomain//customdirectory. What’s the fix? (Keep in mind that I’m relatively a newbie.) Thanks.

    First fix to try is the quickest: log into the Admin, go to Settings and check the WordPress address (URL) field.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘double slash prefixed to Page url gives 404’ is closed to new replies.