I have wordpress running fine in my local machine. When I migrate to production, using the plugin “duplicator”, everything seems to work fine. In fact, I can access my dashboard successfully and navigate inside wordpress with no problems.
However, when I try to “visit site” or navigate to the proper site directly I get the error “This webpage has a redirect loop”.
The error is solved by adding the following line to my functions.php file
After adding this line, the site becomes available, however the permalinks do not work and any link would lead me to the home page instead. If I change the permalink settings to default
(http://www.mydomain.com/?p=123) then everything works fine.
Any help would be really very much appreciated.