Change Coppermine's Cookie Domain? Change Coppermine's Cookie Domain?
 

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

Change Coppermine's Cookie Domain?

Started by mrandall131, January 16, 2006, 05:29:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mrandall131

Ok, the bridge between coppermine and SMF works great.  Now, the problem I have is that SMF provides a "utility" that allows information from the board to be used on site pages.  Problem is, I can't really use it as the cookie domains differ.  Not many people will leave the www. off when visiting my site.

So, is there anyway to change the cookie domain of coppermine to add the "www." in front of the domain?

Joachim Müller

force the www or force the lack of it by adding a bit .htaccess magic like thisRewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.your_site\.tld$ [NC]
RewriteRule ^(.*) http://your_site.tld/$1 [R,L]

mrandall131

You mean that does it for the whole site?  index.html too?

Tranz



mrandall131

Ok, here's what I added to the .htaccess file.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.northeastatvers\.tld$ [NC]
RewriteRule ^(.*) http://northeastatvers.tld/$1 [R,L]

Is this correct?  When I added that and typed in www.northeastatvers.com, it did not change it to northeastatvers.com.

Tranz

Does your host allow rewrite in .htaccess?


Joachim Müller

Quote from: mrandall131 on January 16, 2006, 06:41:55 PM
Ok, here's what I added to the .htaccess file.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.northeastatvers\.tld$ [NC]
RewriteRule ^(.*) http://northeastatvers.tld/$1 [R,L]


Is this correct?  When I added that and typed in www.northeastatvers.com, it did not change it to northeastatvers.com.
Make itRewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.northeastatvers\.com$ [NC]
RewriteRule ^(.*) http://northeastatvers.com/$1 [R,L]
instead and you should be fine - the abbreviation "tld" is short for "top level domain", I was trying to suggest that you change it as well, as I didn't know your domain name when I posted the example.

mrandall131

Thanks to everyone.  You guys make it so easy for noobs like me to get this stuff working.