Domain name mistaken on install Domain name mistaken on install
 

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

Domain name mistaken on install

Started by JJ Photo, November 12, 2004, 09:26:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JJ Photo

Hi,

Loving Coppermine on my site.   Thank you!

Please help.  When I installed Coppermine I think I mistakenly referenced www.domain-name.com and another time as just domain-name.com.  This worked fine until I activated the 'My Favorites' page that uses client cookies.  Now users loose their favorites depending on which domain name they are browsing on, either www.doman-name.com or domain-name.com.  I'm pretty sure it's my mistake that I made during install.  How can I fix it so Coppermine points all traffic to just one domain name (preferably www).

Thank you!
JJ Photo

Tranz

Have you looked at the Config settings while logged in as admin? There is a field to put in your gallery URL.

JJ Photo

TranzDance thanks for your reply.  I'm using 1.3.2.  The only URL field I see in config.php is "Target address for the 'See more pictures' link in e-cards".  It points to the www.domain-name.com/gallery .  I don't see a field to put in my gallery url otherwise.

I _am_ using a hack that adds paypal fields into config.php but it didn't remove any config fields, only added some for the shopping cart.

Please advise. JJ

Tranz


JJ Photo

Thanks again for your time in replying.  I'm not sure I'm communicating the issue correctly.  Coppermine makes tons of links all over its pages.  I would like to force the links to be www.domain-name.com and not allow domain-name.com (no www) to be created by Coppermine.  Is this possible?

The reason I want to do this is so that the client cookies are consistent between visits.  If a visitor, not knowingly, types domain-name.com he'll not be using his cookie for www.domain-name.com.  Since I have so many photos in my galleries, some people may be quite upset to see they have no favorites.

As an alternative solution, how can I put a link on the thumbnails.php?album=favpics  page?  I could list both domain names and instruct visitors to try both links, in case they've lost their favorite photos.

Thank you very much for your time and great work on Coppermine!
JJ Photo

Joachim Müller

cpg1.3.x stores favorites in the cookie. Unless you have fiddled with the cookie path or cookie domain, both www.domain.tld and domain.tld should be readable as well, and there should be no difference wether a user accesses your domain with or without www. To check, it would help if you posted a link to your site and a test user account (non-admin).

Joachim

JJ Photo

Thanks Joachim.  My site url is http://www.jonathanjessup.com/gallery/

I don't let users have accounts in Coppermine (just yet) so everyone is a guest.  I think what I'm experiencing may be Mozilla because IE gives the same My Favorites photos for either jonathanjessup.com or www.jonathanjessup.com but Mozilla does not. 

Unless we can find a workaround, I would love to have some text on the My Favorites page that explained this difference between browsers to visitors.

Tranz

I was able to replicate that in IE and Firefox.

PS Beautiful photography. :)

Joachim Müller

I was able to replicate as well, in Firefox there's a difference between accessing the domain with or without leading "www", in IE there isn't. The cookie hostname is "www.jonathanjessup.com" or "jonathanjessup.com" - those are different domains, so the cookies are not valid for Firefox. This may be a bug in Coppermine imo, I think we'll have to make up our minds on a cookie domain setting (similar to the setting some BBS apps have). As a workaround, you could set up your server to redirect all requests for "www.jonathanjessup.com" to go to "jonathanjessup.com" or vice versa - I think this can be accomplished with apache's mod_rewrite.

Joachim