issue with the installation of wordpress in k8s with subdirectory
-
Hi,
I installed the wordpress by using bitnami/wordpress helm chart in EKS. Since I want to use https://www.example.com/blog (subdirectory) as the blog address, I updated the wp_home and wp_siteurl in the wp-config.php file. Please see the code below. For now, both the wp_home and wp_siteurl are using https://www.example.com/blogif ( defined( 'WP_CLI' ) ) { $_SERVER['HTTP_HOST'] = 'www.example.com'; } define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/blog' ); define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/blog' );
I can access my blog by https://www.example.com/blog, but some other styles contents of the web are missing. I got 404 error.
https://drive.google.com/file/d/14cpxQJ-7mg-k3fqhUIA46l7dNIdmhl0-/view?usp=share_link
I even cannot go to admin portal. see the error from browser: “www.example.com redirected you too many times.”
https://drive.google.com/file/d/1S3QJ0T5qmBw3zB3Z9vBI8T7ufC010xBz/view?usp=sharing
cannot upload screenshots here.
- The topic ‘issue with the installation of wordpress in k8s with subdirectory’ is closed to new replies.