• In the interest of my SEO efforts I updated my permalink structure to a more web friendly
    /archives/%categories%/%post_id%.html.

    I then tested the new structure by clicking on my posts and pages and they all came up and loaded perfectly.

    BUT, what doesn’t load perfectly is my sidebar after you click on any post. The post itself comes up fine, but the Adsense code in my sidebar starts spouting off ads for unrelated content, if it shows up at all. And some of my buttons and graphics, and my nav menu bar all disappear from the sidebar. Once I go back to the main page, everything goes back to normal.

    Internet Explorer says there is a syntax error in its status bar every time I click on the posts. So I had no choice but to go back to the original default structure and now everything works fine.

    I tried all kinds of permalink variations – and all end with the same problem. What do I do, please?

    I’m confused with this .htaccess and mod-rewrite stuff, so it should be noted I haven’t touched any of that, aside from updating the permalinks via WordPress admin. I’m using WP 2.0.

    Do I need to edit .htaccess? If so, how?
    Any help will be incredibly appreciated. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • “In the interest of my SEO efforts I updated my permalink structure to a more web friendly
    /archives/%categories%/%post_id%.html”

    Just so you know, that’s not any more or less “web friendly” than if you had set the permalinks to
    “/archives/%category%/%postname%/” and left it at that… contrary to popular (archaic) belief, the search engines have no problem spidering sites that don’t end in “.html” – and since the site’s database driven anyway, and the actual TECHNICAL address would end in “.php” naturally, you’re actually probably playing with fire there…

    and yes, note the fact that it should say “category” not “categories”

    I do this for a living, so no, I’m not some schmuck telling you this who doesn’t know any better… take my word for it, and check my site if you don’t believe me… (it’s in my profile or click on my name)

    Thread Starter idajica

    (@idajica)

    hi, thanks for your reply.

    the “.html” at the end was not the reason for the change, first of all. it was to remove the https://mysite.com/?p=123 structure, which to my understanding is not as web friendly as your example, “/archives/%category%/%postname%/” which I tried as well with the same problems resulting.

    2nd, the “category” mention is correct and noted, but it’s just a typo here, and unrelated to my issue.

    after refreshing the page a few times, the adsense actually seems to regenerate, but i just realized that the main issue are my flash buttons, and my javascript menu disappearing. on the main page, the sidebar is fine. but click on any article and the sidebar will lose the menu buttons.

    what could be happening here?
    why would flash be disabled with one permalink structure and not with the other?

    “the “.html” at the end was not the reason for the change, first of all. it was to remove the mysite.com/?p=123 structure, which to my understanding is not as web friendly as your example”

    it really doesn’t make much difference these days… sure, having the name of the post show up might be better (who likes to look at numbers anyway?) but it’s honestly not something to over-worry about.

    that said, i’m not sure why you’re having the issues with the .js and flash, except to say that i’ve had that same thing happen with other sites – regardless of the permalink structure. it shouldn’t have anything to do with it… i think you might just have some buggy code in there that you only catch once in a while or while using a certain type of permalink for some reason.

    i’m not sure if “themoneyinsider” is the site with the issues, but assuming it is, you might want to check this out:

    https://validator.w3.org/check?uri=http%3A%2F%2Fthemoneyinsider.com%2F

    there are 140 errors on the home page there, and maybe working on them might help correct your problems??

    if it’s not “themoneyinsider” site, then go to https://validator.w3.org/ and enter the site and check for validation errors… quite often there’s a culprit in there that you wouldn’t notice otherwise… and in this case, i’m thinking that’s true.

    Thread Starter idajica

    (@idajica)

    wow.. well, that’s a lot of errors! that is the site with the problem unfortunately. the strange thing is, I checked my sidebar.php file for many of those errors and it seems the validator page is incorrect. it says i’m missing quotation marks here and there, but i checked the exact points where it says to put them, and they’re there, so i don’t know. i’m very confused with all this.

    thank you for the help and the link. it seems i will have to stick to the default structure though and hope it works with my SE efforts. if you do have more suggestions i’ll still be glad to hear them.

    they’re probably not going to JUST be in your sidebar file… you’ll have to check index.php, header.php, sidebar.php, footer.php (maybe), as well as your posts that are currently appearing on the front page.

    don’t go back to default – it’s only a little time-consuming, but you’re going to have errors in the default too (i’m willing to bet)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New permalinks work, but sidebar messed up!’ is closed to new replies.