Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 684
H
Addict
Addict
H Offline
Joined: Jun 2006
Posts: 684
I'm in the process of buying a copy of PhotoPost to put onto images.haroldandrews.com . I have my version 7 board at forum.haroldandrews.com . The support forum at PhotoPost let me know that I can integrate the two if they both use the same cookie domain.

Do I need to set the cookie domain on the Photopost install to something like "forum.haroldandews.com" to work with the the boards default cookie path setting of "/" in the Control Panel Primary Settings?

Thanks.

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
AFAIK you should just have to set your cookie domain to haroldandrews.com on both with the path of /

This is because www. is infact a sub-domain and works with the cookie domain set to yourubbtsite.com.

It would be nice for both www.yourubbtsite.com and yourubbtsite.com to work at the same time - but this requires another cookie on your PC. If you go to this thread -http://ubbcentral.com/forums/ubbthreads.php/ubb/showflat/Number/167132/page/1#Post167132 you will find yourself logged out (assuming you are currently on the www version)

Joined: Jun 2006
Posts: 684
H
Addict
Addict
H Offline
Joined: Jun 2006
Posts: 684
Thanks, Ian. That cleared up my subdomain confusion. I never fooled with them until now.

I'll be playing with this after I get some yardwork done this afternoon.

Joined: Jul 2006
Posts: 15
P
stranger
stranger
P Offline
Joined: Jul 2006
Posts: 15
If you're running Apache you can just use the mod_rewrite engine (make sure the module is loaded). Simply edit .htaccess in your ubbthreads directory and add:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R,L]

With this enabled, accessing the site from anything but www.domain.com will change to www.domain.com.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I use something similar in my web root .htaccess to change non-www connections to www for consistancy wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2012
Posts: 8
V
stranger
stranger
V Offline
Joined: Oct 2012
Posts: 8
best fix so far. thank you very much:)


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 816 guests, and 465 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)