• Resolved Doodlebee

    (@doodlebee)


    I have a friend who’s running a site that’s using “pretty permalinks”. However, somehow, the URL is getting added to the URL. Meaning, it *appears* that the rewritten URL is getting stripped of anything that’s not letters, and put back into it. So what *should* show up as:

    https://site.com/category/

    is showing up as:

    https://site.com/httpsitecomcategory/category

    it’s very bizarre. I’ve undone all plugins, and reverted to default (then redid the permalink structure) and the same thing happens – so it’s not a theme or plugin thing. I can’t imagine it’s the permalink code, because it looks normal to me:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    it’s set up to do /%category%/%postname%/

    would anyone know why it’s doing this? very weird. I’m wondering if it’s some kind of server setting – but he’s got another site on this same server that’s set up with the same permalinks, and it’s fine.

Viewing 7 replies - 1 through 7 (of 7 total)
  • A few things:

    • Check the blog and WordPress address in the settings.
    • Make sure that there is nothing beyond /%category%/%postname%/ in the permalink settings (no site URL or http).
    • Check the category base and make sure that it’s either blank or a web-safe word (no slashes, site URL, or percents).

    Additionally, I don’t know what symptoms it would cause, but there should be no trailing slash at the end of the WordPress or blog URL in the dashboard settings.

    Thread Starter Doodlebee

    (@doodlebee)

    Thanks Iridiax. Unfortunately, all four things are as they should be. The addresses are fine (and no trailing slash), it’s *just* %category/%postname%/ and nothing else, and there’s no category base – it’s totally blank.

    this is just really weird. I just added in the %month% key – just to see if the month would come in on this. And instead of

    https://site.com/october/category/

    I got this:

    https://site.com/httpsitecomcategory/%month%/category

    it *literally* translated the %month% part instead of replacing with with “october”. I have never seen this happen before. Truly bizarre. Maybe there’s a corrupt file somewhere…

    Thread Starter Doodlebee

    (@doodlebee)

    Yeah – okay. I’ve upgraded it for him to 2.6.2 – but the problem persists.

    Default works just fine – but for some reason, the permalinks are taking…funky. Still doing what I said above (even the /%month%/ thing is still happening.)

    Anyone have any other suggestions on what could be wrong? Could it be a server thing? That doesn’t make sense to me though, because there’s 3 other installations on this server, and all of them have the exact same setup – bu this is the only one doing this.

    Thread Starter Doodlebee

    (@doodlebee)

    oh, well DUH. Now I see why it’s showing /%month%…it’s supposed to be /%monthnum% Dur. Okay, when I fix THAT, it does that it’s supposed to do:

    https://site.com/httpsitecomcategory/10/category

    very weird.

    Thread Starter Doodlebee

    (@doodlebee)

    OMG – nevermind. Holy crap. This is what I get for trusting friends when they say “I haven’t done anything”. I noticed that ALL the other structure tags were working fine – just the *category* one was doing this. So I went in to check hi categories.

    He changed ALL the category slugs to say “httpsitecomcategory”. ALL of them. They’re all the same.

    well, problem solved. It wasn’t the permalinks. LOL

    He changed ALL the category slugs to say “httpsitecomcategory”. ALL of them. They’re all the same.

    well, problem solved. It wasn’t the permalinks. LOL

    So that’s why there were no slashes or colon in the weird added part of the URL. He probably added the full URL in for the slug, and then WordPress stripped out these characters because they are not allowed in slugs.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permalinks adding in URL to…URL’ is closed to new replies.