(www.) keeps disappearing whent transferring (phpBB + CPG) (www.) keeps disappearing whent transferring (phpBB + CPG)
 

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

(www.) keeps disappearing whent transferring (phpBB + CPG)

Started by Spotabee Racing, June 29, 2005, 07:08:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spotabee Racing

My site: http://www.spotabeeracing.com
CPG gallery: http://www.spotabeeracing.com/gallery

Any time I click the link from my main site to the /gallery, it changes the URL in the browser window from http://www.spotabeeracing.com/gallery to http://spotabeeracing.com/gallery
and without the www. in there, it shows me as not logged in. When I manually type the www. in after this happens, it works fine. Im I missing something somewhere to get it to not do this?

// database configuration
define('PHPBB_DB_NAME', 'teams007'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'mysql.omnis.com'); // The name of the database server
define('PHPBB_DB_USERNAME', 'teams007'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'ts2002'); // The password to use to connect to the database


// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);





define('COPPERMINE_VERSION', '1.3.3');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');



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

kegobeer

Do you have a .htaccess file that removes the www?  This isn't anything that Coppermine could cause.  Since you are running some sort of CMS, I'm guessing there's a .htaccess file rewriting the url.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

Include a trailing / at the end of your link to coppermine, so it points to /gallery/

Spotabee Racing

Quote from: Nibbler on June 29, 2005, 04:45:26 PM
Include a trailing / at the end of your link to coppermine, so it points to /gallery/

that did the trick! thanks so much. consider this issue solved.