How to make post previews work with different site address URL?
I can’t preview any private posts or drafts when my site URL and WP URL are different, namely:
If I also set the Site Address to https://secure43.hostgator.com/~wstrong then all previewing and login (see below) works, but my internal link structure contains that URL, which is not what I want.
I’m on Hostgator shared hosting and using the WordPress HTTPS (SSL) package. As far as I can tell, I have to set up the two domains as such to get SSL to work with this plan. But please let me know if I need to make any other changes to use a different Site URL like this, because I haven’t yet.
As far as I can tell, everything else (Admin panel, the website) all work fine, except logging in is a bit buggy, as I get a 404 error at https://secure43.hostgator.com/~wstrong/wp-login
but then I just proceed to https://secure43.hostgator.com/~wstrong/wp-admin without a problem.
In this thread the problem is just that WP for some reason uses site URL in previewing rather than the WP Address. However, my problem is not merely that, as swapping the URL generated for a preview loads correctly if the URLs are the same, but not if they are different.
Any suggestions would be greatly appreciated, as I am out of ideas.
- The topic ‘How to make post previews work with different site address URL?’ is closed to new replies.