WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "Pretty permalinks" breaks iframe content (3 posts)

  1. idle_threat
    Member
    Posted 1 year ago #

    The goal: On my local test server (MAMP Pro), use an iframe in a wordpress page to load a local html file, so I can design html content locally without needing to paste it into wordpress after every change for testing. Simple, right?

    The problem: The iframe returns my wordpress install's 404 error page. While attempting to debug this, I found that, in the markup, the iframe is formatted correctly, but when I right-click on the iframe and load it in a new browser tab, the url bar says "http://(my wordpress install path)/Array" regardless of the url the iframe is pointing to. If I disable pretty permalinks (and go back to the default "?p=123" style) the iframes work perfectly.

    So it looks like WordPress is intercepting the iframe url, trying to rewrite it, and failing. I'm not sure what to do about this.

    Any help will be appreciated.

  2. idle_threat
    Member
    Posted 1 year ago #

    Ooooookay nevermind, problem seems to have fixed itself, after 45 minutes of poking. Maybe turning the permalinks off, then back on again, fixed it.

    This concludes tonight's unintentional IT Crowd reference.

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    LOL - that's the "post a question and your problem is magically fixed" trick :)! Whatever, glad it's decided to work for you.

Topic Closed

This topic has been closed to new replies.

About this Topic