-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing home and siteurl #196
Comments
WordPlate will find your address by default with or without
These variables are set in the framework. WordPlate also provide environment variables for We would defiantly want this to work out of the box and if you find what caused this we are all ears! |
I have a rather tricky configuration, a request goes through these steps:
So it turns out WordPress thinks it should serve There are a bunch of ways to address this, I think I'll handle it. Regarding WordPlate itself:
|
I agree, I'll add them as soon as possible. What do you think about an option to enforce |
OK, thanks! "Secure" is a term a bit too broad. WordPress has already got FORCE_SSL_ADMIN constant, so let's call the environment variable in a similar manner, |
@mvasin yeah, that sounds good! Would you be up to submit a pull request to add this feature to the |
Sure, with pleasure. |
@vinkla Being a TDD confessor, I am currently in the process of writing a failing test for I don't see an opportunity to test it without WordPress (maybe you do?), so what I'll come up with will be the first broader test involving WordPress core in I use an extra It's getting a bit hairy because it's not possible to target "path" type of a composer repository to the parent path of current ( And while I mess with it, I need to know what platforms do you target |
The less messy and a cross-platform variant is to place the whole composer package into a directory alongside the
@vinkla Don't you mind if I rearrange into such a directory structure? |
Thanks for the suggestion but I would like to keep the current structure. Please open an WIP (work in progress) pull request on the |
OK, I'll leave the directory structure as is and open a WIP PR as soon as I can. Please close this issue when you'll update the docs. |
I've updated the documentation in: wordplate/wordplate.github.io@4fa03da |
I'm transferring my site from http to https, and need to change URL scheme in
home
andsiteurl
fromhttp
tohttps
.In WordPress admin panel both "WordPress Address (URL)" shows
http://mysite.com/wordpress
and is non-editable, "Site Address (URL)" ishttp://mysite.com
and is also grey,wp option get siteurl
returns a weirdhttp://:/wordpress
string,wp option get home
printshttp://:
.wp option update home https://mysite.com
andwp option update siteurl https://mysite.com/wordpress
succeed, but change nothing,wp option get
and WordPress admin page display what they did before.I even tried
wp option update home https://:
andwp option update siteurl https://:/wordpress
with no effect as well.I wonder how these options are even set? For instance, Bedrock provides
WP_HOME
andWP_SITEURL
environment variables and mentions them in the docs, and in WordPlate docs I found no information about it.The text was updated successfully, but these errors were encountered: