johnkawakami
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem with WordPress behind Reverse ProxyI’d check that the siteurl and home in the wp_options have “https” instead of “http”.
Also, I have a hack, probably not wise, in a short mu-plugin, that just gets rid of the scheme entirely, because that’s how it’s done nowadays:
function jk_force_relative( $url, $scheme, $orig_scheme ) { if ($scheme == 'http') { $url = str_replace( 'https://', '//', $url ); } return $url; } // Now we set that function up to execute when the admin_notices action is called. add_filter( 'set_url_scheme', 'jk_force_relative', 10, 3 );
- This reply was modified 4 years, 8 months ago by johnkawakami.
- This reply was modified 4 years, 8 months ago by johnkawakami.
Forum: Fixing WordPress
In reply to: Where is wp-json?I just had this problem. My symptom was that no permalinks worked. The fix was to alter the Apache config for the directory, adding:
AcceptPathInfo on
I think you can add it to .htaccess, but I added it to the server’s config.
If this is on, then URLs like /index.php/path/to-page/ will work. Apache will look for a path to a file that exists, and then pass the URL to that file.
My secondary problem was that my .htaccess wasn’t being read at all, because options were not enabled. At this time, I’m using .htaccess, but it would be more efficient to move these up into the server config, so you avoid reading an extra file.
- This reply was modified 4 years, 8 months ago by johnkawakami.
This is a different problem. You don’t want to map different domains at all. What you need is a plugin that will look at the HTTP Host header and then use the value to generate the page.
Forum: Fixing WordPress
In reply to: How to get rid of extra code added when saving postsIt could be a Pinterest plugin. Searching for “z-index: 8675309” brought up a lot of Pinterest references. It could also be a browser extension that adds a feature to your browser.
You need to read up about WPMU, which allows multiple sites to be hosted on one installation.
Then install the plugin WordPress MU Domain Mapping. This allows different domains to point to the same IP address, but display different websites.