Can’t access admin when WordPress is in a subfolder
-
Hello,
I installed WordPress using this Docker image. In installed WordPress on a sub-folder (https://thibault.vlacich.fr/blog).
I’m using Traefik for routing. Here’s my docker-compose file:
version: '3.7' networks: http_network: external: true thibaultvlacich: external: false services: database: image: mariadb:latest command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--default-authentication-plugin=mysql_native_password'] volumes: - .docker/data/db:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} MYSQL_DATABASE: ${MYSQL_DATABASE} MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} networks: - thibaultvlacich wordpress: depends_on: - database image: wordpress:latest volumes: - ./wordpress/wp-content:/var/www/html/wp-content environment: WORDPRESS_DB_HOST: database:3306 WORDPRESS_DB_USER: ${MYSQL_USER} WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD} WORDPRESS_DB_NAME: ${MYSQL_DATABASE} labels: - traefik.enable=true - traefik.frontend.rule=Host:thibault.vlacich.fr;PathPrefix:/blog;PathPrefixStrip:/blog - traefik.port=80 - traefik.docker.network=http_network networks: - thibaultvlacich - http_network
Everything is working fine, at the exception of the admin. When I go to https://thibault.vlacich.fr/blog/wp-admin, I’m redirected to https://thibault.vlacich.fr/wp-admin, and then can’t access the admin.
Any idea how I could fix that? (Both WP_HOME and WP_SITEURL are correctly set to https://thibault.vlacich.fr/blog)
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Can’t access admin when WordPress is in a subfolder’ is closed to new replies.