Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: (www.) keeps disappearing whent transferring (phpBB + CPG)  (Read 3787 times)

0 Members and 1 Guest are viewing this topic.

Spotabee Racing

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
(www.) keeps disappearing whent transferring (phpBB + CPG)
« on: June 29, 2005, 07:08:44 am »

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?

Code: [Select]
// 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

Code: [Select]
// 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);




Code: [Select]
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...');


Code: [Select]
<?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;
?>
« Last Edit: June 30, 2005, 12:34:34 am by kegobeer »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: (www.) keeps disappearing whent transferring (phpBB + CPG)
« Reply #1 on: June 29, 2005, 03:10:51 pm »

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.
Logged
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

  • Guest
Re: (www.) keeps disappearing whent transferring (phpBB + CPG)
« Reply #2 on: June 29, 2005, 04:45:26 pm »

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

Spotabee Racing

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: (www.) keeps disappearing whent transferring (phpBB + CPG)
« Reply #3 on: June 29, 2005, 11:31:44 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.