redirection redirection
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

redirection

Started by banstey, January 03, 2005, 07:03:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

banstey

when i link go to the index page in coppermine and press the login button im redirected to www.lop.com  i have gone over all the files i am suppose to change and everything is right.  has anyone come across this before? any suggestions on how to fix it?

Joachim Müller

this is expected behaviour: when bridging is enabled in coppermine, clicking the login link will send you to the login page you specified in your bridge file. Post your actual coppermine url and a test user account (non-admin) for further details.

Joachim

banstey

the url is http://www.apluscs.net/snozone 

i cant make a test account as it wont let me get to the login

Nibbler

Your login page trys to redirect to : http://www.apluscs.nethttp://www.apluscs.net/forumlogin.php?redirect=cpg_redir.php


Review your changes to the bridge file.

banstey

#4
thank you the bridge file had an issue in it..  i got logged into coppermine  but now there are a number of other places i cant go..  i can upload and arrange pics..  but other things like logout profile and login for anyone other then me wont work..  i created a test account on my message forum it is username jk password test.. 

Joachim Müller

when bridging is enabled, coppermine's login page shouldn't show up when clicking on the login link, but the user should be redirected to your bbs app's login screen (expected behaviour), so I guess you disabled bridging/integration by turning off the switch in include/init.inc.php. As coppermine and your bbs are currently not bridged, you can't log in with a test account that is only valid on your bbs. Re-enable bridging, so we can try again.

Joachim

Mr Tee

#6
I am having a problem with redirection. If I try to log in through coppermine I am redirected to my BB, which is fine, however, when I log in I the receive a 404 error. It tries to find a a folder called thegallery when it should direct to gallery.

I have checked all files but can find no code that directs to thegallery.


Nibbler

It's in the cpg_redir.php file. Post it here if you can't locate the error.

Mr Tee

Thanks,

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/forum/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Nibbler

That's a cpg_redir.php in your gallery directory. You need to edit the one in your forum directory, and remove the one in your gallery directory.

Mr Tee

Yep, that would do it....... ::) Now I see the problem, I must have tried to install Coppermine previously. Thanks for the help.