UNSUBSCRIBE goes to homepage

This problem occurs in phplist v3.5.4
Browser is Firefox 68.11.0esr on Debian 10
Our URL is lakechapalasociety.com

Here’s the problem. The phplist subscription setting for unsubscribing is
https://www.lakechapalasociety.com/list/?p=unsubscribe. This is being place in the footer of our emails, along with the recipient uid. When the link is clicked, the user is taken to our home page, lakechapalasociety.com instead of phplist. See screenshot. Any ideas about how to correct the link?

According to what you’ve said, you have installed phpList in https://www.lakechapalasociety.com/list
Is that right? Can you confirm that the url is correct? I ask as your site seems to be at https://www.lakechapalasociety.com/public
What is the value of the $root value in config.php?

The usual reason that a url being redircted is error trapping or somesuch in your .htaccess file

Yes. phpList is installed in the public_html folder as subfoder ‘list’. There are two domains served from public_html. The folder /public/ in the url is reached as a redirect.

I do not have a $root in the config.php file. I do have $pageroot = ‘/lists’;.

Here is the .htaccess entries that redirects to the /public folder of the domain from which the web pages are served.

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.lakechapalasociety.com/$1 [R,L]
RewriteCond %{HTTP_HOST} ^lakechapalasociety.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.lakechapalasociety.com$
RewriteRule ^/?$ “https://lakechapalasociety.com/public/” [R=301,L]

Any suggestions on how to get to the /list folder, which is at the same level as /public within public_html