Too many redirects error when change of base url

by Ripper346   Last Updated August 10, 2018 12:08 PM

recently I got to manage a Wordpress blog (so I don't know of things made before) and to start doing some edits on it I did a local docker compose as sandbox. When I copied the contents (Wordpress files + mysql db), the website worked well, instead for the links that didn't redirect to the local version but to the production one. So, to make them work (as I am unable to access to administration), I replaced in wp_options table site_url and home values with the local path ( However, since I did it, the website no longer loads and finishes into a too many redirects error. Does anyone know how to fix this?

I tried also, instead of add the changes in db, to write them in the wp-config.php file (according to this) but nothing changes.

I am using Wordpress 4.9.8 in HTTP on port 33080 and the container's dockerfile is:

FROM php:5.6.35-apache-jessie

RUN docker-php-ext-install mbstring mysqli pdo pdo_mysql
RUN a2enmod rewrite
RUN echo 'log_errors = On\nerror_log = /dev/stderr' >> /usr/local/etc/php/php.ini

I am very new to Wordpress environment, so assume that if there is something I had to do and I didn't wrote it there, I didn't do it. Thanks.

Tags : redirect docker

Related Questions

Site built with docker convert to classic?

Updated July 25, 2016 08:03 AM

301 redirects on a wordpress + docker solution. Ip

Updated August 20, 2017 20:08 PM