• Resolved mghachem

    (@mghachem)


    Just installed WordPress 3.6 on a self-hosted site and it is working great. All plugins seem to be working (with one exception that I posted under the WP Google Fonts plugin forum).

    One question: I am still not able to preview posts with 3.6. It is giving me the same error message I had under 3.5.2: page not found. I was hoping that 3.6 would fix this, but it doesn’t seem to have. Any suggestions? I exhaustively looked through prior WordPress forum threads on this issue but was not able to solve it earlier.

    Thanks.

    PS — I did go through the 3.6 Master List before posting the above!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mghachem

    (@mghachem)

    Further to my query above, I did make sure that this was not a plugin issue by checking post preview before I activated any of my plugins after the 3.6 install. I also checked to see if it was a theme-specific problem by activating the 2013 theme but that theme had the same post preview problem. And, finally, I did clear the browser cache and reset the Permalinks to default and then back to my new format choice before trying again.

    My site is at lawandrevolution.com (the host server is via a university).

    Thanks for any help!

    Hi there!

    Like mghachem I also have that issue:
    Preview of a page / an article does not work!

    How can we fix this?!

    Thanks in advance & Regards from Germany!
    Mark

    Thread Starter mghachem

    (@mghachem)

    I managed to solve my problem this way.

    It is an htaccess problem with the way the site is hosted on my self-hosting service in a sub-directory.

    First backup everything.

    Then, if you were to set both the WordPress address URL and the Site Address URL on the admin settings page so that they indicate the same subdirectory in which your WordPress files are located on your self-hosting server, the posts and previews will work. If you are redirecting from a self-hosted site to your own registered .com or other domain, set both values to whatever the .com domain is, and then modify the htaccess file at the root as follows:

    The .htaccess file modification that worked for me is as follows:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?DOMAINNAME.com$
    RewriteRule ^(/)?$ DOMAINNAME [L]

    So, if you are using https://www.smith.com, smith would go where DOMAINNAME appears above, in both places — and without the www. or .com in the third line, just smith followed by [L]

    Note: make the contents of the current file comments by adding ‘#’ in front on each line. That way you could always revert back to what it is currently if things do not work properly (you would revert to the original settings by removing the ‘#’ characters on each line).

    Hey there!

    Coincidentally, I also solved that issue.

    I manually cleared my browser cache.
    That’s it! Nothing more!

    Everything works fine again.

    Regards,
    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘post preview in WordPress 3.6 still not working’ is closed to new replies.