WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting Page Preview (9 posts)

  1. walkinman
    Member
    Posted 2 years ago #

    hey Folks,

    Looking at my google webmasters tools, it's showing this page under 'duplicate title tags'

    examplesite.com/wordpress/?page_id=1318&preview=true

    The page displays virtually the same as my home page examplesite.com- same content, but some funky different presentation (it looks like a blog post does, not a page, on my site, sidebars, etc) .. except that page_id should not .. that page_id is actually for another page on my site. And I would've assumed that "preview=true" would only be available to a logged in admin user, no?

    It's not a huge issue, unless it points toward some other greater issue, but I would like to try to understand then fix it. That url is not being linked to from my site. I tried to write a redirect to the home page, examplesite.com, but I can't seem to make that work for this url.

    Any and all help much appreciated, thank you.

    Cheers

    Carl

  2. And I would've assumed that "preview=true" would only be available to a logged in admin user, no?

    Yes. If a non-admin hits it, they should get redirected. Why on earth is Google picking THAT up. Did you link to it somewhere?

  3. walkinman
    Member
    Posted 2 years ago #

    Hey ipstenu

    I have no idea why google is picking it up .. and google isn't telling me where it got the link from.

    What's really weird is the page that displays is NOT the page for that particular id

    the site is http://www.expeditionsalaska.com

    and the wordpress folder is /ramblings/

    if you copy that with the ?page_id=1318&preview=true you'll see what I mean. It display the home page, weirdly enough, which is not that id at all.

    But more concerning is why "preview=true" is somehow showing anything at all.

    Any ideas?

    Thanks again

    Cheers

    Carl

  4. o.O

    I just tested ipstenu.org/?p=1917&preview=true and it's showing something. THAT isn't good.

  5. Okay, there's a trac ticket on it: http://core.trac.wordpress.org/ticket/20496

  6. Sergey Biryukov
    WordPress Dev
    Posted 2 years ago #

    if you copy that with the ?page_id=1318&preview=true you'll see what I mean. It display the home page, weirdly enough, which is not that id at all.

    I see “Alaska; a wilderness exploration” page, and its ID seems to be 1318 (according to <div class="post" id="post-1318"> in the HTML source).

    /?page_id=1318 redirects to /wilderness-alaska-information/, so the page appears to be published. I guess the only bug here is that it doesn't redirect with &preview=true, which is covered by the ticket.

  7. walkinman
    Member
    Posted 2 years ago #

    hey Sergey

    Yes, the page is published .. but it gets really weird.

    mysite.com/ramblings/?page_id=1318&preview=true sends me to a page with post id 1888

    You'll see a totally different page structure for mysite.com/?page_id=1888, though it displays the same content (minus the sidebars). The home page of the site

    http://www.expeditionsalaska.com/

    is the same entry content as mysite.com/ramblings/?page_id=1318&preview=true

    but it has a different post id.

    The page with post id of 1318 has very different content all together

    /wilderness-alaska-information/ .. which IS published, yes. But it's not the same id # at all.

    So it's not directing correctly. Could it be something to do with having w/p not in the root directory (/ramblings/) but having it point to the root (expeditionsalaska.com/)?

    And why it shows for &preview=true I'll leave up to you folks who are way smarter than I.

    Thanks.

    Cheers

    Carl

  8. walkinman
    Member
    Posted 2 years ago #

    Just to show more clearly

    website/ramblings/?page_id=1318&preview=true

    and

    website/ramblings/?page_id=1318

    show 2 different things. The 2nd one shows a 404. The preview=true goes to a different page all together (a messed up version of the home page).

  9. walkinman
    Member
    Posted 2 years ago #

    OK - if anyone is still paying attention to this. It seems the plugin tweetme is causing some problems. From my access logs

    89.151.116.53 - - [15/May/2012:01:42:56 -0700] "GET /ramblings/2012/05/31/alaska-northern-lights-photo/ HTTP/1.1" 404 24973 "-" "Mozilla/5.0 (compatible; TweetmemeBot/2.11; +http://tweetmeme.com/)"

    and

    89.151.116.53 - - [15/May/2012:01:39:55 -0700] "GET /?p=2470&preview=true HTTP/1.1" 404 40454 "-" "Mozilla/5.0 (compatible; TweetmemeBot/2.11; +http://tweetmeme.com/)"

    and

    89.151.116.53 - - [15/May/2012:01:25:57 -0700] "GET /?p=2448&preview=true HTTP/1.1" 404 28352 "-" "Mozilla/5.0 (compatible; TweetmemeBot/2.11; +http://tweetmeme.com/)"

    both of these are for my site expeditionsalaska. I wrote up that post last night, and scheduled it for posting the end of the month. and the tweetme is posting a link to both the link AND the preview=true version of the page before the page is published.

Topic Closed

This topic has been closed to new replies.

About this Topic