Page not found going to wrong site

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Page not found going to wrong site

Postby PatriciaW43 » 3:19pm, Tue 14 Jan, 2014

I've created phplist in a sub-directory of another site i.e. sample.com/subdirectory/lists

I have a Drupal site at sample.com/subdirectory and another at sample.com

When I click the forward link on a newsletter it goes to the sample.com rather than getting a 404 (page not found.)

What setting controls this? I'd prefer that it gets a 404 or go to the sample.com/subdirectory site.

I've checked every possible setting and also config.php and can't see anything relevant.
PatriciaW43
phpLister
 
Posts: 10
Joined: 6:14pm, Tue 24 Sep, 2013

Re: Page not found going to wrong site

Postby Dragonrider » 3:35pm, Tue 14 Jan, 2014

Check your config/config.php file and see if the $pathroot is pointing to lists or yoursub/lists

Oh, and unless you add a ErrorDocument 404 http://domain/subdom/lists to your phpList /.htaccess any error will still point to our other site
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Page not found going to wrong site

Postby PatriciaW43 » 4:27pm, Tue 14 Jan, 2014

Thanks for the feedback
$pathroot is pointing to subdom/lists
I added the ErrorDocument setting to .htaccess but it has not taken effect. (I presume it should take effect immediately.) I had not added the full URL but I just changed it and it has not had any effect.
PatriciaW43
phpLister
 
Posts: 10
Joined: 6:14pm, Tue 24 Sep, 2013


Return to Question & Problems - after installing

Who is online

Users browsing this forum: No registered users and 3 guests

cron