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

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]

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.